☰ Menu · Pagination
Getting started
Pagination
List endpoints return pages of up to 100 objects, newest first, and a cursor to get the next page.
JSON
{
"object": "list",
"url": "/v1/members",
"has_more": true,
"data": [ { "object": "member", ... }, ... ]
}- limitinteger
- How many objects to return, 1 to 100. Default 20.
- starting_afterstring
- The
idof the last object on the previous page. The next page starts after it.
Keep asking while has_more is true. The cursor is stable even when new objects arrive, so you do not skip or repeat anything.
curl
# first page
curl "https://loyaltyfy.io/api/v1/members?limit=100" -H "Authorization: Bearer sk_test_..."
# next page: pass the id of the last object you got
curl "https://loyaltyfy.io/api/v1/members?limit=100&starting_after=6dacfe0a-2500-44c6-a37c-05c660b093b4" \
-H "Authorization: Bearer sk_test_..."