page and limit. For new integrations, use the cursor-based endpoints listed below.
Query parameters
| Parameter | Type | Notes |
|---|---|---|
limit | number | Items per page. |
after | string | Cursor to fetch the page after a position. Use the next cursor from a previous response. |
before | string | Cursor to fetch the page before a position. Use the previous cursor from a previous response. |
orderBy | string | Field to sort by (endpoint-specific). |
orderDirection | string | ASC or DESC. |
includeCursor | boolean | Include the cursor item itself in the results. |
Response envelope
Cursor-based list endpoints return a consistent envelope:| Field | Description |
|---|---|
data | The array of items for the current page. |
next | Cursor for the next page, or null if this is the last page. |
previous | Cursor for the previous page, or null if this is the first page. |
totalCount | Total matching items, counted up to a maximum of 50,000. |
totalCountCapped | true when more than 50,000 results match and totalCount is capped. |
next cursor as after on the following request. Stop when next is null:
Cursor-based endpoints
These endpoints use cursor pagination:- Search subscribers
- List all topics
- List topic subscriptions
- Retrieve subscriber subscriptions
- List all contexts
- List all channel connections
- List all channel endpoints
Fetch all pages
This example walks every page of a cursor-based list with the TypeScript SDK until there are no more results:Legacy page-based pagination
A few older endpoints still acceptpage and limit instead of cursors. They return page, pageSize, and hasMore in the response. Prefer the cursor-based alternatives above when both exist.
| Endpoint | Notes |
|---|---|
| List all messages | Uses page and limit. |
| List all events | Uses page and limit. |
| Retrieve subscriber notifications | v1 feed endpoint. Uses page and limit. |
Related documentation
- Overview — REST API capabilities and conventions
- Rate Limiting — Stay within request limits while paging
- Search subscribers — Filter and paginate subscriber results