Find contacts by phone number or email address. Searches across all channels. At least one search parameter is required.
"+56912345678", "56912345678", "12345678""[email protected]", "@example.com", "john"phone or
email (or both).| Field | Type | Description |
|---|---|---|
id | string (UUID) | Unique identifier for the contact |
name | string | Contact’s full name |
phone | string | null | Contact’s phone number |
email | string | null | Contact’s email address |
platform | string | Communication channel (whatsapp, instagram, etc.) |
last_message_at | string (ISO) | Timestamp of the last message sent/received |
chat_status | string | Current chat status (UNATTENDED, ATTENDED, etc.) |
created_at | string (ISO) | Contact creation timestamp |
client_id | string (UUID) | Your organization ID |
ai_customer_id | string (UUID) | Associated customer profile ID |
default_stage_id | string (UUID) | Current pipeline stage |
blocked | boolean | Whether the contact is blocked |
is_chat_read | boolean | Whether the chat has been read by an agent |
+, -, spaces, etc.)"12345678" finds "+56912345678""+569" finds all numbers with that prefix"56912345" finds "+56912345678""[email protected]" matches "[email protected]""@company.com" finds all contacts from that domain"[email protected]" finds exact match"@example.com" finds all contacts from that domain"john" finds "[email protected]", "[email protected]", etc.phone and email are provided, returns contacts matching either criteria (OR logic):
last_message_at descending| Status Code | Description |
|---|---|
| 400 | Bad Request - Neither phone nor email provided |
| 401 | Unauthorized - Invalid or missing API key |
| 500 | Internal Server Error - Something went wrong |
phone, email, or both+ in phone numbers and @ in emails)+ or emails with @, make sure to URL-encode:
| Character | URL Encoded | Example |
|---|---|---|
+ | %2B | +56912345678 → %2B56912345678 |
@ | %40 | [email protected] → john%40example.com |
| Space | %20 | john doe → john%20doe |
encodeURIComponent().
"@" alone will match too many resultsILIKE for flexible matchingAPI key needed to authorize the request
Phone number to search (partial match supported)
"+56912345678"
Email address to search (partial match supported)
Contacts found successfully.
"df980fc8-b6db-4820-bf22-2969482d106d"
"John Doe"
"+56912345678"
"whatsapp"
"2024-09-30T10:00:00.000Z"
"ATTENDED"
"2024-01-15T10:00:00.000Z"