Pagination

The Offly API uses cursor-based pagination for all list endpoints.

How it works

Pass a limit query parameter to control page size (default 25, max 100). The response includes a pagination object with a next_cursor value to fetch the next page.

Request
GET /api/v1/audit?limit=50

Response format

Every paginated response includes a data array and a pagination object:

Response
{
  "data": [
    { "id": "evt_001", "action": "leave_request.created", "timestamp": "2026-05-20T09:15:00Z" },
    { "id": "evt_002", "action": "leave_request.approved", "timestamp": "2026-05-20T09:30:00Z" }
  ],
  "pagination": {
    "next_cursor": "eyJpZCI6ImV2dF8wNTAifQ==",
    "has_more": true
  }
}

Fetching the next page

Pass the next_cursor value as the cursor query parameter in your next request:

curl "https://api.offly.net/api/v1/audit?limit=50&cursor=eyJpZCI6ImV2dF8wNTAifQ==" \
  -H "Authorization: Bearer YOUR_API_KEY"

End of results

When there are no more results, has_more will be false and next_cursor will be null.