Overview
Caspen APIs use cursor-based pagination. Each paginated response includeslinks.prev and links.next entries with fully qualified URLs. When another page is unavailable, the corresponding link is null.
Request parameters
| Name | Required | Type | Description |
|---|---|---|---|
limit | No | integer | Maximum number of records to return per page (1-100). If omitted, the endpoint uses its default page size (10 unless otherwise noted). |
cursor | No | string | Cursor token that identifies the page to fetch. Use the value embedded in the links.next or links.prev URL from the previous response. |
Response structure
Every paginated response returns the resource collection plus alinks object that guides you to neighbouring pages.
links.prev: URL for the previous page ornullwhen you are at the beginning of the dataset.links.next: URL for the next page ornullonce you have reached the end.
Fetching the next page
- Request the first page, optionally setting
limitto control page size.
- Read
links.nextfrom the response. If it is notnull, issue another request using that URL verbatim.
links.next becomes null.