> For the complete documentation index, see [llms.txt](https://wiki.mobivatebulksms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.mobivatebulksms.com/search-and-pagination-parameters/introduction-to-searching-and-pagination.md).

# 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 %}
