Skip to main content
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

Look up one number:
Write the number without + 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:
Keep asking for the next 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

page must be 1 or more, and page_size from 1 to 100, both whole numbers.
The X-API-KEY header is missing or does not belong to any account.
The account the key belongs to has been deactivated. Contact support.

Authorizations

X-API-KEY
string
header
required

Query Parameters

page
integer
default:1

Page number, starting at 1

Required range: x >= 1
page_size
integer
default:20

Contacts per page, at most 100

Required range: 1 <= x <= 100
to_number
string

Return only this number. Send it without +, which a URL reads as a space.

Response

One page of contacts

status
string
Example:

"done"

contacts
object[]
pagination
object