# Pagination

List endpoints return pages with `nextCursor` and `hasMore`:

```
json{
  "items": [...],
  "nextCursor": "...",
  "hasMore": true
}
```

## Paging through results

```
pythonfrom fivexer import Fivexer, ListTasksQuery

client = Fivexer(base_url="...", api_key="...")
cursor = None
while True:
    page = client.tasks.list(ListTasksQuery(status="queued", cursor=cursor, limit=50))
    for task in page.items:
        print(task.id)
    if not page.has_more:
        break
    cursor = page.next_cursor
```

Most list endpoints accept `cursor` and `limit`. If `has_more` is false, you have reached the end.

## Ordering

Results are ordered by creation time descending unless documented otherwise for a specific endpoint.
