> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapace.lk/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> Page through lists with a cursor.

List endpoints return results newest first, one page at a time:

```json theme={null}
{
  "object": "list",
  "data": [ { "object": "pass", "id": "pass_7hGk2LmQ9xVt4RnB8cYe" } ],
  "hasMore": true,
  "nextCursor": "pass_7hGk2LmQ9xVt4RnB8cYe"
}
```

| Query parameter | Description |
| - | - |
| `limit` | Items per page, from 1 to 100. Defaults to 25. |
| `cursor` | The `nextCursor` from the previous page. Leave it out for the first page. |

When `hasMore` is `false`, `nextCursor` is `null` and you've reached the last page.

```bash theme={null}
curl "https://api.tapace.lk/v1/passes?limit=50&cursor=pass_7hGk2LmQ9xVt4RnB8cYe" \
  -H "Authorization: Bearer $TAPACE_API_KEY"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.