# Pagination

All paginated endpoints return a `pagination` object at the top level of the response alongside `data`.

## Schema

| Field     | Type    | Description                                         |
| --------- | ------- | --------------------------------------------------- |
| `limit`   | integer | Number of items requested per page.                 |
| `offset`  | integer | Number of items skipped from the start.             |
| `total`   | integer | Total number of items available.                    |
| `hasMore` | boolean | `true` if more items exist beyond the current page. |

## Example

```json
{
  "pagination": {
    "limit": 100,
    "offset": 0,
    "total": 432,
    "hasMore": true
  }
}
```

## Query Parameters

Paginated endpoints accept the following query parameters:

| Param    | Type    | Default | Description                         |
| -------- | ------- | ------- | ----------------------------------- |
| `limit`  | integer | 100     | Max items to return. Capped at 500. |
| `offset` | integer | 0       | Number of items to skip.            |

## Example Request

```
GET /dexpal/v1/rewards?from=2026-02-01T00:00:00Z&to=2026-02-01T23:59:59Z&limit=500&offset=0
```


---

# 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.dexpal.io/for-partners/schemas/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.
