# Pagination

All top-level API resources return a paginated list of items as the query response data. This is necessary as the complete list might contain a lot of items, thus returning the entire list at initial request will be suboptimal for resource management.

The response however returns metadata about the total size of the data being queried. To obtain more data from the entire list, you may simply provide the next page number in increments of 1 within the bounds of the total page number.

Below is a sample of the pagination meta returned for an endpoint

```json
meta: {
    page_meta: {
      page: "number",
      page_size: "number",
      search: "text"
    }
  }
```


---

# 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://docs.switchappgo.com/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.
