Common Patterns
Pagination & Filtering
List endpoints accept limit (default 20, maximum 100) and an optional cursor.
GET /api/v1/contacts?limit=20A response includes the next cursor and, from version 2026-10-20, whether another page follows:
{"data": [], "meta": {"pagination": {"nextCursor": null, "hasMore": false}}}When nextCursor contains a value, pass that value unchanged as the next request’s cursor, URL-encoded, and keep the same filters. Stop when it is null. Cursors belong to the organization, resource, and filters used to create them. Invalid or mismatched cursors return 422.
Results are ordered newest first with a stable ID tie-breaker: by creation time, except /chats on 2026-10-20, which lists by most recent activity. Page numbers and custom sorting are not supported.
Filters
Section titled “Filters”| Endpoint | Filters |
|---|---|
/contacts |
search matches contact name; externalId matches an exact external ID; phone matches a phone number regardless of formatting |
/chats |
search matches conversation name. On 2026-10-20 it also matches the contact’s name or number, and status (one or more of open, pending, snoozed, closed, comma-separated), channelId, type (direct or group), assignee (unassigned or a user ID) and updatedSince are available |
/chats/{id}/messages |
On 2026-10-20: after (a message ID — the messages after it, oldest first) and clientReference (the Idempotency-Key a message was sent with) |
/templates |
search and channelId |
Stay in sync
Section titled “Stay in sync”To keep a copy of the inbox current, combine webhooks with two catch-up reads, for example after downtime:
GET /chats?updatedSince=<last sync time>returns every conversation that changed since then.- For each,
GET /chats/{id}/messages?after=<newest message ID you have>returns what you missed, oldest first.
Other list endpoints support pagination without these filters. Access remains limited to the resources permitted by your key.