API
Pagination
Every list endpoint uses cursor pagination with limit + starting_after.
List endpoints are cursor-paginated. Pass limit and optionally
starting_after:
curl -H "Authorization: Bearer $AX_KEY" \
"https://axerity.com/api/v1/transactions?limit=20"Response:
{
"object": "list",
"data": [
/* up to `limit` items */
],
"has_more": true,
"next_cursor": "01HW….",
"url": "/v1/transactions"
}To fetch the next page, set starting_after to the previous response's
next_cursor:
curl -H "Authorization: Bearer $AX_KEY" \
"https://axerity.com/api/v1/transactions?limit=20&starting_after=01HW…"Parameters
| Parameter | Default | Max | Notes |
|---|---|---|---|
limit | 20 | 100 | Items per page. |
starting_after | none | — | Resource id from a previous page. |
Stopping conditions
has_more: false— you've reached the end.next_cursor: null— same; it's null on the last page.
A simple loop
cursor=""
while true; do
resp=$(curl -s -H "Authorization: Bearer $AX_KEY" \
"https://axerity.com/api/v1/transactions?limit=100${cursor:+&starting_after=$cursor}")
echo "$resp" | jq '.data[]'
has_more=$(echo "$resp" | jq -r '.has_more')
if [ "$has_more" != "true" ]; then break; fi
cursor=$(echo "$resp" | jq -r '.next_cursor')
done