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

# Changelog

> API version history and updates

## Unreleased

### Added

* **Organization and directory reads.** `GET /v2/organization` returns the organization your key belongs to and the settings that decide whether your requests succeed: enabled channels, the number candidates see, accepted phone regions, rate limit and webhook state. `GET /v2/branches`, `GET /v2/users` and `GET /v2/tags` list the rest of your organization's directory.
* **Pipeline sync across jobs.** `GET /v2/applications` lists every application in the organization, filterable by `job_id`, `stage`, `outcome`, `status`, `source`, `updated_since`, `created_after` and `created_before`, with `cursor` pagination. `GET /v2/jobs/{jobId}/stages` lists a job's stage names and `PUT /v2/applications/{applicationId}/stage` moves an application into one.
* **Candidate activity, notes and attachments.** `GET /v2/candidates/{candidateId}/activity`, `/notes` and `/attachments`. Attachments carry a short-lived signed `url`.
* **Call recording download.** `GET /v2/calls/{callId}/recording` streams the audio behind your API key. `recording_url` on calls and candidates expires, so use this endpoint when you need to keep or replay a recording.
* **Webhook delivery log.** `GET /v2/webhooks/events` lists outbound deliveries, filterable by `status`, `type` and `created_since`. `GET /v2/webhooks/events/{eventId}` returns the exact signed envelope while it is retained.
* **Job links.** Job list and detail return `slug` and `job_url`, the candidate-facing job page. `GET /v2/jobs/{jobId}` also returns `updated_at`.
* **`external_id` and `call_id` on `POST /v2/candidates`.** Pass `external_id` to store your own applicant id (returned as `remote_application_id` / `remote_candidate_id`). When outreach is sent the response includes `call_id`, matching `POST /v2/calls` and v1. The `409` duplicate response now documents its `data` (`candidate_id`, `webcall_url`, `interview_panel_url`).
* **Webhook payloads in the OpenAPI spec.** `WebhookEnvelope` and each event's `data` schema are published as components. See [v2 events](/docs/guides/webhooks.md#v2-events-beta).
* **Hosted MCP server and agent guides.** The read-only MCP server is hosted at `https://mcp.classet.ai/mcp`, with setup for Claude Code, Cursor, VS Code, Codex and Claude Desktop in [MCP server](/docs/guides/mcp-server.md). Two new guides: [Build with an AI agent](/docs/guides/agents.md) and [Connect Classet to your ATS](/docs/guides/ats-integration.md).
* **MCP `migrate_from_v1` prompt.** The read-only MCP server now offers a prompt that walks an agent through moving a v1 integration to v2: the guide, the migration skill, and the changes that break integrations silently.
* **Script variable fallbacks.** A script variable can name what to say when the value is missing: `{candidate.custom_data.cpm|the standard rate}`. A `job.custom_data` variable with a fallback no longer blocks assigning the script to a job that lacks the field.

### Changed

* **Agent settings describe the voice your calls use.** `GET /v2/agent-settings` now returns `agent_name`, `voice_id`, `voice_model`, `voice_speed`, `pronunciations` and `available_voices`. Nine fields are removed (`voice_temperature`, `volume`, `language`, `responsiveness`, `interruption_sensitivity`, `reminder_trigger_ms`, `reminder_max_count`, `end_call_after_silence_ms`, `max_call_duration_ms`), and the endpoint no longer returns `404` for an organization without a provisioned agent. `PATCH /v2/agent-settings` accepts `agent_name`, `voice_id` (one of `available_voices`), `voice_speed` (`0.9` to `1.2`) and `pronunciations`; any other field returns `400`. It needs an API key with the `write` scope, and no longer returns `503`. Calls that still run on Classet's earlier voice system, such as interviews in a language other than English, use only `agent_name` from these settings.
* **An invalid API key always returns 403.** Repeated requests with an unknown key from one IP used to switch to `429` after three attempts a minute. They now get `403 Invalid API key` every time, so treat a `403` as a key problem and don't retry it.
* **Interviews record the job's script.** Call and candidate endpoints that start an interview now save the job's script on the interview as a custom script.
* **Candidates delta sync now sees interview changes.** `GET /v2/candidates?updated_since=` compares against a new `changed_at` field, the later of the candidate record's `updated_at` and the newest change to any of its interview calls. Previously it compared against `updated_at` only, so results, transcripts, tags and evaluations landing on an existing candidate did not move the cursor. `changed_at` is returned on every candidate (list and detail). Advance your cursor to a pre-poll timestamp minus a 5-minute safety lag, not to `max(changed_at)`; see [Pagination and delta sync](/docs/guides/pagination-and-delta-sync.md#candidates-changed_at-not-updated_at).
* **Applications delta sync now sees interview changes.** `GET /v2/applications` and `GET /v2/jobs/{jobId}/applications` filter `updated_since` on `changed_at` instead of `updated_at`, the same field the candidate list uses, and return `changed_at` on every application. A poll can now return more rows, including ones whose `updated_at` is older than `updated_since`. Advance your cursor to a pre-poll timestamp minus 5 minutes, not to `max(updated_at)`.
* **`outcome` is validated.** On both application lists, `outcome` must be an interview outcome value (`qualified`, `unqualified`, `completed`, …). An unknown value such as `pass` returns `400` instead of an empty page.
* **`{jobId}` accepts a v1 shortcode** on `GET /v2/jobs/{jobId}`, `/stages` and `/applications`, like every other `job_id`.
* **Invite-limit errors match across send routes.** `POST /v2/calls` returns the same `429` body as `POST /v2/candidates` (`error: "Interview invite limit exceeded"`, details in `message`), and every `503 rate_limit_unavailable` carries `Retry-After: 30`. The `429` is documented as `InviteLimitError`. `ErrorResponse.code` is now a documented enum of the existing codes.
* **Test Webhook sends a signed v2 envelope.** `POST /v2/webhooks/test` with `type: "event"` sends a `webhook.test` envelope signed like a live event, so a verifying endpoint answers 2xx.
* **v1 `force_create` treats a quick re-post as a retry.** `POST /v1/candidates` with `force_create: true` for the same email and job (the same phone number and job when the post has no email) within 12 hours of a candidate an earlier `POST /v1/candidates` created now returns that candidate with `replayed: true` and `interview_sent`, instead of creating another and sending another invite. It answers `200` when the request asks for no outreach or the candidate was sent an interview, `201` otherwise; a retry never sends anything, so send a missing interview with `POST /v1/candidates/{candidateId}/interview`. Outside the 12 hours, or when the existing candidate came from anywhere else, `force_create` creates a new candidate as before. Without `force_create`, a post with no email now gets `409` when a candidate with the same phone number exists on the job. The `409` `error` text changed; match on the status code, not the text.

### Fixed

* `POST /v2/candidates` and `PATCH /v2/candidates/{candidateId}` now store `location.region_code` and `location.country_code`, as `POST /v2/calls` already did. Before, both were dropped without an error, as they were on `POST /v1/candidates`.
* `created_after`, `created_before`, `interview_sent_after` and `interview_sent_before` on the application lists accept a full ISO-8601 timestamp. Before, a timestamp had a time suffix appended and the filter broke; a bare date now covers the whole day.
* `application.created` is no longer sent for a candidate whose outreach failed to queue and was rolled back.
* Moving an application to the stage it is already in no longer sends `application.stage_changed`.
* A candidate hired, un-hired and hired again sends `candidate.hired` both times.
* A v2 webhook whose first publish failed is retried by the delivery sweep instead of being dropped. One QStash refuses outright (a 4xx other than `429`) is dropped after one retry instead of being retried on every sweep; a `429` is retried.
* If outreach can't be confirmed as queued (a timeout or 5xx from the queue), `POST /v2/candidates`, `POST /v2/calls` and `POST /v2/candidates/{candidateId}/interview` can return `500` with the `candidate_id` and keep the candidate. Check it before retrying; the interview may already be on its way.
* `POST /v2/candidates/{candidateId}/stop-interview` stops an interview that is queued but hasn't reached the candidate yet, and it is never sent. Sending it again afterwards with `POST /v2/candidates/{candidateId}/interview` clears the stop and sends.
* `next_cursor` is no longer `null` mid-list when a page ends on a candidate with no `created_at`, which ended cursor walks early on both candidate and application lists.
* `created_after` and `created_before` on `GET /v2/applications` reject `2026-13-01` and non-ISO values such as `1` with a 400. Before, the first was a 500 and the second was sent to the database as-is.
* `PATCH /v2/applications/{applicationId}` no longer sends `application.stage_changed` for a stage that only differs in letter case, matching `PUT /stage`.
* `GET /v2/jobs` and `GET /v2/jobs/{jobId}` returned 500 for every request.
* `GET /v2/calls/{callId}/recording` and outbound webhooks returned 502 for every caller, because of a server-side runtime change.
* `created_after` and `created_before` reject impossible dates such as `2026-02-30` with a 400. Before, they shifted silently to the next valid day or returned a 500.

## v2.0.3 — 2026-04-13

* security: fix PostgREST filter injection and harden auth fallback

## v2.0.2 — 2026-04-13

* Update for SEO

## v2.0.1 — 2026-04-13

* Update for SEO

## v2.0.0 — 2026-04-11

Initial release of the Classet v2 API.

### Added

* OpenAPI 3.1 specification generated from the code, published with this [API reference](/docs/api-reference/overview.md)
* **Jobs**: full CRUD (list, get, create, update, delete)
* **Candidates**: list, get, update, message history
* **Applications**: list by job, get, update, disqualify
* **Calls**: register, get details with transcript/recording, list by candidate
* **Scripts**: full CRUD plus duplicate and task management
* **Knowledge base**: CRUD for FAQs, context, and documents
* **AI generation**: generate jobs, scripts, and full company onboarding
* **Webhooks**: configure event and results webhook URLs, test delivery
* API key authentication via `X-API-KEY` header (same keys as v1)
* Standard response envelope `{ data, meta }` across all endpoints
* OpenTelemetry tracing with `X-Request-Id` and `X-Trace-Id` headers
* MCP server for AI agent integration, in development. It is not yet published as a package; see [MCP server](/docs/guides/mcp-server.md)


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