Pagination
Most list endpoints support pagination to efficiently retrieve large datasets. The API uses two pagination strategies depending on the endpoint.
Offset-Based Pagination
Used by endpoints like GET /v1/numbers, GET /v1/conversations, and GET /v1/agents.
Response format
hasMore—trueif more results are available beyond the current page.total— Total number of items (may not be present on every endpoint).
Cursor-Based Pagination
Used by message endpoints like GET /v1/numbers/:id/messages. Cursors use timestamps for efficient pagination of time-ordered data.
Always check hasMore before fetching the next page. Use cursor-based pagination (before/after) for time-ordered data — it is more efficient than offset-based pagination for large datasets.
