Get Contacts
Getting Started
Get Contacts
List your CRM contacts one page at a time, most recent conversation first, or look up one number.
GET
Get Contacts
Reads the contacts in your CRM, one page at a time, or looks up a single number with its current attributes.
Quick Example
+ in the URL. In a query string, + is read as a space.
Use Cases
- Syncing out: copy your CRM contacts, and the attributes your agents collected, into your own database
- Checking a lead: see whether a number is already a contact, and what is saved on it, before you create or update it
Pagination
Contacts come back in the order the CRM shows them: the most recent conversation first, then contacts that have never messaged, most recently updated first.
The response says how many pages there are:
page until it reaches total_pages. A page past the end returns an empty contacts list.
New messages and edits move contacts up the list, so the pages can shift while you read them. When copying every contact, expect the odd contact to appear on two pages, and match on
to_number.What each contact contains
Errors worth handling
400 page or page_size out of range
400 page or page_size out of range
page must be 1 or more, and page_size from 1 to 100, both whole numbers.401 Invalid API key
401 Invalid API key
The
X-API-KEY header is missing or does not belong to any account.403 Account is inactive
403 Account is inactive
The account the key belongs to has been deactivated. Contact support.
Authorizations
API key from https://callkaro.ai/dashboard/api-key
Query Parameters
Page number, starting at 1
Required range:
x >= 1Contacts per page, at most 100
Required range:
1 <= x <= 100Return only this number. Send it without +, which a URL reads as a space.