For developers
What it is
The BE Contacts API is a small API that you build on your system: a CRM, a job system, or any database that holds your contacts. BE Voice and BE Messaging then call it to show your contacts: who is calling, who a message is from, and a list to search and dial.
Once it is built, an administrator connects it with two things: your address (for example https://crm.example.com/api/v1) and an API key. See Contacts connection.
The four methods
| Method | Request | Needed? | What it does |
|---|---|---|---|
| Read | GET /contacts?cursor=&limit= | Yes | Sends the whole list, in pages. |
| Check | GET /contacts/lookup?number= | Yes | Says who has one phone number. |
| Write | POST /contacts | Optional | Adds a contact under an existing company. |
| Update | PATCH /contacts/{id} | Optional | Changes a contact. |
If you build Write, also build GET /companies?q=, so a new contact can be saved under one of your companies.
There is no delete. Binary Elements products never remove anything in your system.
Leave Write and Update out (answer 404 or 405) and your contacts are read-only in our products.
A contact
{ "id": "c-1042",
"name": "Sam Lee",
"company": "Example Pty Ltd",
"company_id": "a-77",
"email": "[email protected]",
"numbers": [ { "number": "+61400000000", "label": "mobile" } ],
"updated_at": "2026-12-01T03:00:00Z",
"deleted": false }
idandnumbersare needed.idis text, unique in your system, and never changes for that contact.namemay be empty whencompanyis set, for a company's main number. A contact with neither is left out.labelis free text for people to read. We suggestmobile,work,homeorother. Nothing is decided from it: whether a number is a mobile is worked out from the number.updated_atis optional.deleted: truetells us to drop the contact from our copy.
Read: the whole list
GET /contacts?limit=500
Authorization: Bearer <key>
200
{ "contacts": [ { "id": "c-1042", "name": "Sam Lee", "numbers": [ { "number": "+61400000000" } ] } ],
"next_cursor": "page-2" }
- We ask for 500 contacts a page. Send the full
limiton each page. next_cursoris any text of yours. We send it back ascursorto get the next page. Leave it out, or sendnull, on the last page.- We read the whole list every 15 minutes. A contact that is no longer in the list, or is sent with
deleted: true, is dropped from our copy.
Check: who has this number
GET /contacts/lookup?number=+61400000000
Authorization: Bearer <key>
200
{ "contacts": [ { "id": "c-1042", "name": "Sam Lee", "company": "Example Pty Ltd",
"numbers": [ { "number": "+61400000000", "label": "mobile" } ] } ] }
- The number arrives in E.164 form, such as
+61400000000. Matching it against your own spelling of the number is your job. - Answer an empty list when nobody has the number:
{ "contacts": [] }. - When several contacts have the number, put the best match first. A product that shows one name shows the first.
- We send a Check only for a number that is not in our copy, about once a day for each number nobody has. Expect some repeats, for example when several phones ring at once.
- We wait 5 seconds for the answer.
- A contact you answer on Check must also be in Read, or it is dropped again at the next full read.
Write and Update (optional)
POST /contacts
{ "company_id": "a-77", "name": "Sam Lee", "email": "[email protected]",
"numbers": [ { "number": "+61370000000", "label": "work" } ] }
PATCH /contacts/c-1042
{ "numbers": [ { "number": "+61400000000", "label": "mobile" } ] }
- Answer
200with the contact as saved.201is also accepted for Write. - A new contact is always saved under an existing company.
company_idcomes fromGET /companies?q=, which answers a list such as[ { "id": "a-77", "name": "Example Pty Ltd" } ]. We never create, rename or remove a company. - On Update, fields left out stay as they are, and numbers left out are kept, not cleared.
- We do not retry a Write.
Rules
- HTTPS only. Every request carries
Authorization: Bearer <key>. JSON in and out. - A key may be read-only. Answer
403on Write, Update and Companies for that key. - Phone numbers may be in any spelling, such as
0400 000 000or+61 400 000 000. We turn them into E.164, as Australian numbers when there is no country code. A contact with no usable number is left out. - Unknown fields are ignored on our side, and you should ignore fields you do not know. Fields may be added to version 1 later.
Limits
| Limit | Value |
|---|---|
| Contacts a page | 500 |
| Pages read | 40 |
| Size of one page | 8 MB |
| Contacts kept for one business | 5,000 |
| Length of a name | 120 characters; longer names are cut |
| Wait for a Check | 5 seconds |
Errors
Answer any status outside the 200s with a sentence a person can read:
422
{ "detail": "A person can have one mobile number" }
On a 422 the sentence is shown to the user as it is. A list of { "msg": "..." } is also read.
Related
- Contacts connection: connecting your system in the console.
- Connect your software to BE Voice
- API keys and basics
More on BE Voice BE Voice overview Plans & pricing Business VoIP trunks Click-to-call 2FA voice calls Every call answered. First ring, every time. One voice agent. The phone line, or any app. Careful calling, built in BE Voice Answers from your live data, not a script The calls your team never gets to, made for you. Who answers when your customers call Who makes the calls your team never gets to A complete business phone system, without the box on the wall. Good questions, straight answers AI receptionist cost Overflow call handling Integrations Providers compared Business phone system SIP trunks AI receptionist for clinics 3CX alternative Virtual mobile number