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

# Pagination, filtering, and sorting

> Cursor pagination and query conventions.

Many list endpoints use cursor pagination.

## Pagination parameters

```text theme={null}
page[size]=20
page[after]=<cursor>
```

Example:

```bash theme={null}
curl -s "$MIO_BASE_URL/api/v1/teams/$TEAM_ID/contacts?page[size]=20" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/vnd.api+json" | jq
```

Use `links.next` when present:

```json theme={null}
{
  "links": {
    "self": "/api/v1/teams/team_123/contacts?page[size]=20",
    "next": "/api/v1/teams/team_123/contacts?page[size]=20&page[after]=0197..."
  },
  "meta": {
    "has_more": true
  }
}
```

## Filters

Filter syntax uses bracketed keys when an endpoint supports it:

```text theme={null}
filter[email]=member@example.com
filter[status]=active
```

## Sorting

Sort syntax varies by endpoint during the alpha period. The common shape is:

```text theme={null}
sort=created_at
sort=-created_at
```

Use `-` for descending order.

<Warning>
  Pagination, filtering, and sorting are not fully uniform across every module yet. Check the generated endpoint page for the exact query parameters accepted by each endpoint.
</Warning>
