> ## 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.

# Introduction

> Get started with the Alex API v2

The Alex API v2 lets you manage jobs, candidates, invitations, applications, interviews, handoffs and data exports from your own systems, and hear about changes through events and webhooks. Every endpoint follows the same conventions for authentication, errors, pagination and retries.

> [!NOTE]
>
> Moving from the earlier API? See the [migration guide](https://docs.alex.com/api-reference/v2/migration.md) for how each endpoint maps to v2.

## Base URL

Send every request over HTTPS to:

```http theme={null}
https://api.alex.com/v2
```

## Authentication

Use your company's API key. You'll find it in Alex under **Settings → Integrations**. Send it in either header:

```http theme={null}
X-API-Key: <API_KEY>
```

```http theme={null}
Authorization: Bearer <API_KEY>
```

The earlier API's `api-key` header works too, so an existing integration can keep sending it. If you send `X-API-Key` and `api-key` with different keys, the request is refused with `api_key_conflicting`; a key header is used over `Authorization: Bearer`. The key decides which company the request acts for. You can't name a company in the request.

A missing or wrong key returns `401` with one of these codes:

| Code | Meaning |
| - | - |
| `api_key_missing` | No key was sent. |
| `api_key_invalid` | The key isn't valid. |
| `api_key_retired` | The key was rotated and no longer works. Use your company's current key from Alex. |
| `api_key_conflicting` | `X-API-Key` and `api-key` carry different keys. Send one key. |

## Your first request

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

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "object": "job",
      "id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
      "name": "Senior Backend Engineer",
      "candidate_facing_name": "Senior Backend Engineer",
      "description": "We are hiring a senior backend engineer to build distributed systems...",
      "external_id": "REQ-12345",
      "status": "active",
      "workflow_id": "wf_6c2e8a1f4b9d",
      "language": null,
      "application_url": "https://meet.alex.com/apply/8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
      "rounds": [],
      "custom_fields": {},
      "generation_status": "complete",
      "failure_reason": null,
      "updated_at": "2026-11-30T14:05:12.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## Conventions

* **JSON in, JSON out.** Send request bodies as JSON with `Content-Type: application/json`. Other content types get `415`. Unknown body fields get `400` `parameter_unknown`, so typos don't pass silently. Most endpoints reject unknown query parameters the same way; each endpoint's page lists the ones it takes.
* **snake\_case fields.** Every field name is snake\_case.
* **Typed objects.** Every resource has an `object` field, such as `"job"` or `"candidate"`. Lists have `"object": "list"`.
* **Timestamps** are ISO 8601 strings in UTC, such as `2026-11-30T14:05:12.000Z`.
* **Missing values are `null`.** Fields are always present; a value that isn't set is `null`.
* **Request ids.** Every response has a `Request-Id` header. Include it when you contact support.
* **Same ids as v1.** A job, candidate or interview has the same id in v1 and v2, so ids you stored from v1 work here.

## Application stages

v2 tracks an application's progress through its **stage**: the same stages your team moves candidates through in Alex, each in one of four categories (`not_started`, `in_progress`, `complete_successful`, `complete_unsuccessful`). Read it on the [application](https://docs.alex.com/api-reference/v2/applications/get.md), change it with [`PATCH /applications/{id}`](https://docs.alex.com/api-reference/v2/applications/update), and hear about changes with `application.stage_changed`. An application's `stage` is `null` only when it has no stage yet.

## Events and webhooks

v2 records what changes in your account as [events](https://docs.alex.com/api-reference/v2/webhooks.md). Poll them with [`GET /events`](https://docs.alex.com/api-reference/v2/events/list), or register a [webhook endpoint](https://docs.alex.com/api-reference/v2/webhook-endpoints/create.md) to have them sent to you. The [v1 webhooks](https://docs.alex.com/api-reference/webhooks.md) keep working; their `reportId` is the interview's `id` in v2.

## What changed from v1

| Area | v1 | v2 |
| - | - | - |
| Base URL | `/v1/api`, plus some endpoints under `/v2/api` | One base: `/v2` |
| Naming | camelCase, mixed nouns and verbs (`/inviteCandidate`) | snake\_case fields, resource paths (`POST /invitations`) |
| Jobs | Called positions | Called jobs |
| HTTP methods | Mostly `GET` and `POST` | `GET`, `POST`, `PATCH` and `DELETE` |
| Authentication | `X-API-Key` or `api-key` | `X-API-Key`, `api-key` or `Authorization: Bearer` |
| Errors | Varied shapes | One [error envelope](https://docs.alex.com/api-reference/v2/errors.md) with a stable `code` |
| Lists | Whole result sets | [Cursor pagination](https://docs.alex.com/api-reference/v2/pagination.md) and `updated_since` filters |
| Changes | Webhooks for interview events | [Events and webhooks](https://docs.alex.com/api-reference/v2/webhooks.md) for applications, interviews, handoffs and jobs |
| Retries | Not built in | [`Idempotency-Key`](https://docs.alex.com/api-reference/v2/idempotency) on every `POST`, `PATCH` and `DELETE` |
| Rate limits | Per IP address | [Per company](https://docs.alex.com/api-reference/v2/rate-limits.md), with `RateLimit-*` headers |
| Reports | Report objects with public media links | Interviews with an evaluation, and authenticated redirects to the PDF and recording |
| Data exports | Could email the file | Never emailed: download it from `download_url` |

## Next steps

> [card] [Errors](https://docs.alex.com/api-reference/v2/errors.md)
>
> The error envelope and the codes to handle.

> [card] [Pagination](https://docs.alex.com/api-reference/v2/pagination.md)
>
> Page through lists and poll for changes.

> [card] [Idempotency](https://docs.alex.com/api-reference/v2/idempotency.md)
>
> Retry safely without doing the work twice.

> [card] [Rate limits](https://docs.alex.com/api-reference/v2/rate-limits.md)
>
> How limits work and how to back off.

> [card] [Events and webhooks](https://docs.alex.com/api-reference/v2/webhooks.md)
>
> Hear about changes as they happen.

> [card] [Migrating to v2](https://docs.alex.com/api-reference/v2/migration.md)
>
> Map each earlier endpoint to v2.


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