Pagination
How the Claret API pages through large result sets — offset and cursor pagination.
Style
Used by
Why
Offset pagination (reference data)
Parameter
Default
Description
curl "https://plan.claret.app/{tenant}/api/v1/items?page=2&per_page=50" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"{
"meta": {
"pagination": {
"result_count": 50,
"current_page": 2,
"per_page": 50,
"total": 1234,
"last_page": 25
}
}
}Cursor pagination (transactional data)
Parameter
Default
Description
Looping in pseudocode
Choosing per_page
per_pageRelated documentation
Last updated
Was this helpful?