Filter By Phone Number
/api/v1/contacts/phone/{phone}Retrieve a single contact by phone number.
The number is compared digits-only: a leading +, spaces, dashes and brackets in your input are ignored, and every phone stored on a contact is compared the same way. So +959123456789, 959123456789 and 959-123-456-789 all resolve to the same contact. WhatsApp contacts are stored as the international number without + (the WhatsApp ID); contacts created from calls or entered manually are stored as typed.
When several contacts share the number, the one where it is the primary phone is returned, then the most recently created.
Returns the same object as Detail (GET /api/v1/contacts/{id}), including platformContacts and their rooms/channels.
404— no contact holds that number.400— the value is not a phone number (must contain digits; only+, spaces, dashes and brackets are allowed around them).
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
phonestringrequiredPhone number. Digits with an optional leading +, spaces, dashes or brackets. Compared digits-only.
Example:959123456789
Responses
200OK
OK
statusstringrequiredmessagestringrequireddataobjectrequiredChild attributes
idstringrequirednamestringrequiredaddressnullrequiredchannelnullrequirednotesnullrequiredsocialProfileUrlstringrequiredtagsarray[object]requiredChild attributes
idstringoptionalnamestringoptional
companyobjectrequiredChild attributes
idstringrequirednamestringrequiredphonenullrequiredaddressnullrequiredindustrynullrequired
emailarray[object]requiredChild attributes
emailstringoptionalisPrimarybooleanoptional
phonearray[object]requiredChild attributes
phonestringoptionalisPrimarybooleanoptional
customFieldsarray[object]requiredChild attributes
system_namestringoptionaldisplay_namestringoptionaltypestringoptionalvaluestringoptional
400Bad Request
Bad Request
statusCodeintegeroptionalmessagearray[string]optionalerrorstringoptional
404Not Found
Not Found
statusCodeintegeroptionalmessagestringoptionalerrorstringoptional