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

# Pagination

> Page through lists and poll for changes

Every list endpoint returns a page of results in the same envelope:

```json theme={null}
{
  "object": "list",
  "data": [{ "object": "candidate", "id": "5d2c7a90-1f4e-4b6a-8c3d-9e0f1a2b3c4d" }],
  "has_more": true,
  "next_cursor": "eyJhZnRlciI6IjVkMmM3YTkwLTFmNGUtNGI2YS04YzNkLTllMGYxYTJiM2M0ZCJ9"
}
```

| Field | Description |
| - | - |
| `data` | This page of results, in the list's order. Most lists are ordered by `id`. |
| `has_more` | `true` when there are more results after this page. |
| `next_cursor` | Pass it as `cursor` to get the next page. `null` on the last page. |

## Parameters

| Parameter | Description |
| - | - |
| `limit` | How many results per page, from 1 to 100. Defaults to 25. |
| `cursor` | The `next_cursor` from the previous page. Omit it for the first page. |

Treat the cursor as opaque. Keep the other query parameters the same while you page through one list. An invalid `limit` or `cursor` returns `400` `parameter_invalid`.

## Order

| List | Order |
| - | - |
| Jobs, workflows, templates, candidates, applications, interviews, handoffs, webhook endpoints, custom fields, users, matches | By `id` |
| An application's notes, activity, messages and verifications | Oldest first |
| Events | Oldest first, by `created_at` then `id` |

A job's matches are a snapshot of one match run: later pages keep reading that run even after a newer one completes.

## A list that isn't paginated

[`GET /jobs/{id}/rounds`](https://docs.alex.com/api-reference/v2/jobs/list-rounds) returns every round of the job in one response, since a job has few. It takes no query parameters, so `limit` and `cursor` return `400` `parameter_unknown`, and its `has_more` is always `false` and `next_cursor` always `null`.

## Paging through a list

```bash theme={null}
curl "https://api.alex.com/v2/candidates?limit=100" \
  -H "X-API-Key: $ALEX_API_KEY"

curl "https://api.alex.com/v2/candidates?limit=100&cursor=eyJhZnRlciI6IjVkMmM3YTkwLTFmNGUtNGI2YS04YzNkLTllMGYxYTJiM2M0ZCJ9" \
  -H "X-API-Key: $ALEX_API_KEY"
```

Repeat until `has_more` is `false`.

## Polling for changes with `updated_since`

`GET /jobs`, `GET /templates`, `GET /candidates`, `GET /applications`, `GET /interviews` and `GET /handoffs` accept `updated_since`. It returns only results updated at or after that time. Pass an ISO 8601 date, read as midnight UTC, or a timestamp with `Z` or an offset:

```text theme={null}
updated_since=2026-11-30
updated_since=2026-11-30T09:00:00Z
updated_since=2026-11-30T09:00:00-05:00
```

A timestamp without `Z` or an offset returns `400` `parameter_invalid`.

To keep your system in sync:

1. Note the time **before** you start a poll.
2. List with `updated_since` set to the time you noted before the previous poll.
3. Page through every result until `has_more` is `false`.
4. Save the time from step 1 for the next poll.

These lists are ordered by `id`, not by update time, so read every page before you save the new time. The filter includes the boundary, so a record can appear in two polls in a row. Make your updates idempotent by `id`.

An application's `updated_at` is the latest change to the application, its interviews, its handoffs or its stage, so a change to any of them brings it back into the poll.

> [!NOTE]
>
> A list only shows records that still exist. A deleted record drops out of the list without a signal. Interviews and
> handoffs from earlier attempts are left out unless you pass `include_archived=true`.

## Polling events

To follow every change rather than re-reading objects, poll [`GET /events`](https://docs.alex.com/api-reference/v2/events/list) instead. Events take `created_since` rather than `updated_since`, and are listed oldest first. To resume a poll after the last page, pass the `id` of the last event you handled as `after`. See [Events and webhooks](https://docs.alex.com/api-reference/v2/webhooks.md#polling-events).


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