SDK / API Reference
Pagination
How pagination works in the Loomal API
List endpoints return paginated results using cursor-based pagination.
Parameters
| Param | Type | Default | Max | Description |
|---|---|---|---|---|
limit | number | 50 | 100 | Results per page |
pageToken | string | — | — | Cursor 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 (
createdAtdescending)
Endpoint Support
| Endpoint | Pagination | Notes |
|---|---|---|
GET /v0/payments | limit, pageToken | Cursor-based, default 50 |