# Introduction To Searching & Pagination

Many <mark style="color:green;">`GET`</mark> endpoints support query parameters for filtering, sorting, and pagination. These include endpoints like [**Message History**](/message-history/search-sent-and-received-messages.md), [**Contact Lists**](/contact-management/list-contacts.md), [**Opt-Outs**](/optouts-management/list-opt-outs.md), and [**Campaigns**](/message-history/list-message-campaigns.md).

| Parameter | Type   | Description                                                     |
| --------- | ------ | --------------------------------------------------------------- |
| sortField | string | The field to sort results by (e.g., `created_on`).              |
| sortDir   | string | Direction of sorting: `ASC` (ascending) or `DESC` (descending). |
| offset    | number | Number of records to skip (for pagination).                     |
| limit     | number | Maximum number of records to return per page (e.g., 10).        |

We recommend that you use these prameters to effectively handle larger datasets.

{% hint style="info" %}
All endpoints that return lists may support these parameters. Check individual endpoint docs for availability.
{% endhint %}


---

# 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://wiki.mobivatebulksms.com/search-and-pagination-parameters/introduction-to-searching-and-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.
