CropPath for developers

All guides

Pagination

Available

How lists return their records one page at a time.

A list answers {"items": [...], "next_cursor": ...}. To read the next page, send the same request with cursor set to next_cursor. On the last page next_cursor is null.

curl -sS "https://<host>/v1/lots?limit=50" -H "Authorization: Bearer $CROPPATH_TOKEN"
# {"items": [...], "next_cursor": "eyJzZXEiOjQxfQ"}
curl -sS "https://<host>/v1/lots?limit=50&cursor=eyJzZXEiOjQxfQ" -H "Authorization: Bearer $CROPPATH_TOKEN"
# {"items": [...], "next_cursor": null}

Cursors are opaque: never build or change one. A cursor the API did not issue is refused with 400 bad_cursor. Keep the other query parameters the same from page to page. limit sets the page size; the API reference gives each route's default and maximum, and a value outside them is refused with 400 bad_limit.

CSV downloads, the activity log (GET /v1/audit.csv) and the records export (GET /v1/records-export.csv), give the next cursor in the X-Next-Cursor header instead; the last file has none.

In the API reference