Skip to Content

Pagination, filters & search

Cursor-based paging: follow next_cursor, keep your filters stable, stop at null.

Large collections page with an opaque cursor. A list response looks like:

{
  "data": [],
  "next_cursor": "eyJ0IjoiMjAyNi0wNy0yMFQxMjozNDo1NloiLCJpZCI6Ii4uLiJ9"
}

To get the next page, send next_cursor back to the same endpoint with the same filters. next_cursor: null means you're done. You may change limit between pages.

GET /v1/contacts?limit=100&tag_id=TAG_ID&cursor=eyJ0Ijoi...

Cursor rules

  • Opaque and case-sensitive — never decode, edit, or construct one.
  • Bound to its query — the HTTP method, concrete path (including parent IDs), and every non-pagination filter must stay identical while you traverse. Only cursor and limit may change.
  • A malformed or out-of-scope cursor returns 400 with error.details.parameter: "cursor" and details.reason: "invalid_cursor".
  • Traversals are not snapshots: new writes can land before or after your position. If you need reconciliation, record the IDs you processed and do a later pass.

Page-size bounds are per-operation — most lists allow 1..200 with a default of 50, but check the operation's limit parameter in the API reference rather than hard-coding one.

Common filters

Shared names (not accepted everywhere — the operation's schema is authoritative):

ParameterMeaning
qCase-insensitive search; columns are operation-specific
created_fromInclusive lower bound (RFC3339, or YYYY-MM-DD at midnight UTC where documented)
created_toExclusive upper bound; must be later than created_from
archivedexclude (default), include, or only

Resource-specific facets (like status on outbound jobs, direction on phone numbers, kind on eval checks) are listed on each list operation in the reference.

Not every list paginates: small configuration collections (provider catalog, RBAC catalog, current organization, outbound policy) return a bounded array or a purpose-built object. Generate response handling from the operation's schema, and don't add q/dates/cursors to endpoints that don't declare them.

On this page