Paginated endpoints in the Sendcloud v3 API use cursor-based pagination with HTTPDocumentation Index
Fetch the complete documentation index at: https://sendcloud.dev/llms.txt
Use this file to discover all available pages before exploring further.
Link headers.
Unlike offset-based pagination, cursor-based pagination provides stable results even when data changes between requests.
How it works
Pagination links (next, prev) are returned in the HTTP Link response header, not in the JSON response body. The response body only contains a data array.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
cursor | string | No | The pagination cursor value from a previous response’s Link header. |
page_size | integer | No | Number of results per page. Clamped between 0 and the endpoint’s max size. |
Link header format
When there are more pages available, the response includes aLink header with next and/or prev URLs:
Example response
Response headers:Iterating through all pages
To retrieve all results, follow thenext link from each response until no next link is returned:
- Make an initial request to the list endpoint (optionally with
page_size). - Parse the
Linkheader from the response. - If a
rel="next"URL is present, make a request to that URL. - Repeat until no
nextlink is returned.