Pagination
Many Dockt collection endpoints use cursor pagination. A cursor is a value returned by Dockt that identifies where the next page starts. Check the operation’s query parameters: catalogues and /v1/usage return their complete list without limit or cursor.
Request a page
Section titled “Request a page”For paginated collections, use limit to request between 1 and 100 resources. The default is 20:
GET /v1/assignments?limit=50Collection responses include:
{ "object": "list", "data": [], "has_more": true, "next_cursor": "OPAQUE_CURSOR"}Request the next page
Section titled “Request the next page”When has_more is true, send the returned next_cursor unchanged as cursor:
GET /v1/assignments?limit=50&cursor=OPAQUE_CURSORStop when has_more is false or next_cursor is null.
Cursor rules
Section titled “Cursor rules”- Treat the cursor as an opaque string.
- Don’t parse, change or build cursors.
- Keep the same filters and
limitwhile you walk one collection. - Start again from the first page when filters change.
- An invalid or expired cursor returns
400 Bad Request. Restart from the first page. - Don’t use a cursor from one endpoint on another.
GET /v1/account/credits uses a different response layout: pagination fields are inside data.allowances. Its limit is 1 to 25 and defaults to 25. Other retained /v1 collections use their own defaults; check the Account API reference.
Each collection’s filters are in the API reference.