Skip to content

Pagination

How it works

Pass limit (1–100, default 25) and, for every page after the first, the previous page's nextCursor as cursor. nextCursor is null on the last page. Cursors are opaque: don't build or edit them.

Filters are flat query parameters: exact values (status=failed), comma lists for sets, since and until as ISO timestamps, and true or false for booleans. Keep the same filters on every page of one listing.

Short lists that can't grow large (webhook endpoints, at most 10) return { data } without a cursor.

Reading every page

exampleGET /v1/codes
curl "https://api.dotwick.com/v1/codes?limit=100" \  -H "Authorization: Bearer sk_live_…"# pass each page's nextCursor back until it is nullcurl "https://api.dotwick.com/v1/codes?limit=100&cursor=eyJ0IjoxNzU3NDk2ODY4fQ" \  -H "Authorization: Bearer sk_live_…"