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

# Pagination

> Read paginated OpenPMM list responses with cursors and request limits correctly.

Some list endpoints return one page of results.

| Parameter | Meaning                                        |
| --------- | ---------------------------------------------- |
| `limit`   | Maximum number of items to return              |
| `after`   | `next_cursor` value from the previous response |

Send `next_cursor` as the next `after` value. Do not change or create this value.

```bash theme={null}
curl --request GET \
  --url "https://api.openpmm.com/v1/workspaces/$OPENPMM_WORKSPACE_ID/posts?limit=25&after=$NEXT_CURSOR" \
  --header "Authorization: Bearer $OPENPMM_API_KEY"
```

Stop when `has_more` is `false` and `next_cursor` is `null`. Results can change while you read the pages.
