# Pagination

Some API responses—especially those returning lists such as contacts, tasks, or messages—may be paginated. When pagination is applied, the response will include metadata indicating the current page, total items, and a cursor or page token for fetching the next set of results.

Be sure to check for this metadata and follow pagination links or use tokens to retrieve additional data.

```json
// Part of the GET /people response: page 1 of 45

"view": {
        "@id": "/people?page=1",
        "@type": "PartialCollectionView",
        "first": "/people?page=1",
        "last": "/people?page=45",
        "next": "/people?page=2"
 }
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.rogerroger.io/getting-started/pagination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
