Skip to main content
GET
This endpoint allows you to retrieve all contacts from your organization’s database. You can use various filtering options to narrow down the results based on specific criteria like name, email, or phone number.

Use Cases

  • Retrieve a list of all contacts in your organization
  • Search for contacts by name, email, or phone number
  • Populate contact lists in your application
  • Export contact data for analysis or reporting

Headers

string
requerido
Your API key for authentication. You can find this in your dashboard under API settings.

Query Parameters

string
Filter contacts by full name (partial match). For example, using “John” will return all contacts with “John” in their name.
string
Filter contacts by email address (partial match). For example, using “gmail” will return all contacts with Gmail addresses.
string
Filter contacts by phone number (partial match). For example, using “+1212” will return contacts with phone numbers starting with +1212.
number
Maximum number of contacts to return per page, up to 1000. Must be sent together with offset.
number
Number of contacts to skip. Must be sent together with limit: sending one without the other returns 400. If both are omitted, the API returns up to 10,000 contacts and pagination.page / pagination.total_pages are null.
string
Sort direction by creation date. Possible values: asc, desc.
To export your whole contact base, iterate with limit=1000 and increase offset until you have fetched pagination.total_rows contacts. For request throttling, see Rate Limits.

Response

The response contains statusCode, a data array, and pagination with page, total_rows, and total_pages.
number
200 on success
array
Array of contact objects
object
Pagination metadata for the request

Error Codes

  • 400 Bad Request - Invalid request parameters (for example limit above 1000, or limit without offset)
  • 401 Unauthorized - Invalid or missing API key
  • 429 Too Many Requests - Rate limit exceeded; honor Retry-After when present and use bounded backoff. See Rate Limits
  • 500 Internal Server Error - Server-side error

Code Examples

Notes and Best Practices

  • Use filtering parameters to reduce the amount of data transferred and improve performance
  • Implement pagination in your application if you expect a large number of contacts
  • Consider caching the results if you make frequent requests for the same data
  • The API returns a maximum of 100 contacts per request by default