LOOMAL
SDK / API Reference

Pagination

How pagination works in the Loomal API

List endpoints return paginated results using cursor-based pagination.

Parameters

ParamTypeDefaultMaxDescription
limitnumber50100Results per page
pageTokenstringCursor from previous response

Response Format

{
  "payments": [...],
  "count": 50,
  "nextPageToken": "2026-03-28T09:00:00.000Z"
}

If nextPageToken is present, there are more results. Pass it as pageToken in the next request.

Example: Paginating Through All Payments

# First page
curl "https://api.loomal.ai/v0/payments?limit=10" \
  -H "Authorization: Bearer loid-your-api-key"

# Next page (use nextPageToken from previous response)
curl "https://api.loomal.ai/v0/payments?limit=10&pageToken=2026-03-28T09:00:00.000Z" \
  -H "Authorization: Bearer loid-your-api-key"

Ordering

  • Payments: Newest first (createdAt descending)

Endpoint Support

EndpointPaginationNotes
GET /v0/paymentslimit, pageTokenCursor-based, default 50

On this page