> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gomobile.ma/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use Gomobile customer-facing vocabulary.
> Do not infer support for internal, hidden, experimental, or unreleased features.

# Filtering and sorting

> Use the query parameters documented for each list endpoint.

Filtering is endpoint-specific. Use only parameters and sort fields listed in the relevant resource reference.

| Resource | Supported selection examples |
| - | - |
| [Contacts](https://docs.gomobile.ma/developers/reference/contacts.md) | `search` matches name, phone, and email; `include=customAttributes` embeds attribute values |
| [Audiences](https://docs.gomobile.ma/developers/reference/audiences.md) | `search` matches name and description |
| [Audience members](https://docs.gomobile.ma/developers/reference/audiences.md) | `membershipStatus=active` or `exited` |
| [Agents](https://docs.gomobile.ma/developers/reference/agents.md) | `status=draft`, `active`, or `archived` |

Most lists accept `sortBy` and `sortOrder`, but supported fields and handling of unsupported values vary by endpoint. Use fields listed in the resource reference. Some endpoints reject unsupported values; others fall back to their default ordering. `sortOrder` is `asc` or `desc`. Search is at most 100 characters where supported.

Combine selection parameters with [pagination](https://docs.gomobile.ma/developers/pagination.md). Audience rules determine live membership; they are distinct from list-query filters.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.