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
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.