Pagination
Cursor pagination with limit and starting_after, and walking every page.
List endpoints (payouts, transactions, events) return newest first, in pages, using a cursor. The page looks like this:
{ "ok": true, "data": { "object": "list", "data": [ … ], "has_more": true } }| Parameter | Meaning |
|---|---|
limit | Items per page, 1 to 100. Default 20. |
starting_after | The id of the last item you received. Returns the next (older) page. |
Walking every page
curl "https://api.autopayke.com/api/v1/payouts?limit=100" -H "Authorization: Bearer $AUTOPAYKE_API_KEY"
# then, while has_more is true:
curl "https://api.autopayke.com/api/v1/payouts?limit=100&starting_after=po_LAST_ID" -H "Authorization: Bearer $AUTOPAYKE_API_KEY"New items that arrive while you page don't shift your cursor. To sync incrementally, page events from the newest until you reach one you've already processed.