Pagination
Voicebip uses cursor-based pagination for all list endpoints. Cursor-based pagination provides stable, consistent results even when new records are created between requests.
Parameters
Response Format
Every list response includes a next_page_token field:
The array key is the plural resource name, not data. For example, GET /v1/agents returns { "agents": [...], "next_page_token": "..." }. Check the endpoint’s response schema for the exact key.
Example
Fetch the first page of agents with 10 items per page:
Response:
Iterating Pages
To retrieve all items, keep requesting the next page until next_page_token is absent. Here is a bash loop using jq:
Endpoints Supporting Pagination
All of the following list endpoints accept page_size and page_token:
The page_token is opaque — do not parse, decode, or construct it. Always use the exact value from the next_page_token field. Cursors are not reusable across different queries. If you change page_size or filter parameters, start from the first page with no page_token.