Skip to main content

Pagination & Search

When you request a list of records (such as all clients or all messages), there may be thousands of results. Rather than returning everything at once — which would be slow and use a lot of memory — the API sends results in pages, similar to pages of search results on Google. You request one page at a time and can control how many records appear per page.

All list endpoints support pagination and search through query parameters.

Query Parameters

ParameterDescriptionDefault
limitNumber of records to return10
skipNumber of records to skip0
sortField to sort bycreated_at
sortDirectionSort direction: asc or descdesc
searchFull-text search query--

Example

Retrieve the first 25 records, sorted by creation date descending:

GET /v1/clients?limit=25&skip=0&sort=created_at&sortDirection=desc

Searching by Reference

Look up a specific client by reference:

GET /v1/clients?client_reference=CLIENT-12345

Look up a specific event by reference:

GET /v1/events?event_reference=EVENT-12345

Filtering by Relationship

Retrieve all contacts associated with a specific client:

GET /v1/contacts?client={client_uuid}

Replace {client_uuid} with the UUID of the client record.