> This page is for version Preview.
> For other versions, use one of these documentation indexes:
> - Current (default): https://docs.paid.ai/current/llms.txt
> - Preview: https://docs.paid.ai/preview/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.paid.ai/_mcp/server.

# Versioning

> How dated versions, your account's pinned version, and betas work on api.paid.ai/v1.

The Paid API lives at `https://api.paid.ai/v1`, and the `/v1` in the path never changes. Breaking changes ship as **dated versions** instead, named by their release date, such as `2026-11-01`. Your integration keeps working the same way until you choose to upgrade.

## Prerequisites

* Have your [API key](https://app.paid.ai/settings/api-keys) ready.

## How a request gets its version

Paid picks the version for each request in this order:

1. The `Paid-Version` header on the request, if you send one.
2. The version your account is pinned to.
3. For accounts created before pinning existed, the version that was current when the account was created.

New accounts are pinned to the latest version when they sign up. Every response tells you which version was applied in its `Paid-Version` header, along with a `Request-Id` to quote to support.

```bash
curl https://api.paid.ai/v1/api-version \
  -H "Authorization: Bearer $PAID_API_KEY" \
  -H "Paid-Version: 2026-11-01"
```

```http
HTTP/1.1 200 OK
Paid-Version: 2026-11-01
Request-Id: req_3f1c0b9e-2a7d-4c5e-9f61-0d8e4b2a7c13
```

An unknown or malformed `Paid-Version` returns `400` with the code `invalid_version`.

## Upgrade your pinned version

Test a new version on a single request first by sending it in `Paid-Version`. When your integration handles it, change the pin in one of two ways:

* In the dashboard, under **Settings > API keys > API version**.
* Through the API, with `PUT /v1/api-version`. This needs a full-access API key.

```bash
curl -X PUT https://api.paid.ai/v1/api-version \
  -H "Authorization: Bearer $PAID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version": "2026-11-01"}'
```

Requests without a `Paid-Version` header use the new version straight away. For 72 hours after an upgrade, you can roll back to the version it replaced. After that, the pin only moves forward.

## What counts as a breaking change

These changes only ever ship in a new dated version:

* Removing or renaming a field, endpoint, or parameter.
* Making an optional parameter required.
* Changing a type, format, or default.
* Changing an error code or HTTP status code.
* Changing pagination or idempotency behaviour.
* Changing the shape of a webhook payload.

Additive changes ship to every version as soon as they are released, without a new date:

* New endpoints.
* New optional request parameters.
* New response fields.
* New enum values, including new error codes.

Write your integration to ignore response fields and enum values it does not recognise.

## Release cadence

Paid cuts dated versions on a regular calendar, quarterly to start. A quarter with no breaking changes gets no new version. Each version has an entry in the [changelog](./changelog) with its breaking changes and upgrade steps.

Security or correctness fixes are the only exception: they can change every version straight away, and Paid notifies affected customers when that happens.

## Use a beta

Some endpoints and fields are released early as betas. Each beta has a name and its own version, such as `events_strict_batch=v1`. To use one, opt the request in with the `Paid-Beta` header. Separate several betas with commas.

```bash
curl https://api.paid.ai/v1/betas \
  -H "Authorization: Bearer $PAID_API_KEY" \
  -H "Paid-Beta: events_strict_batch=v1"
```

| Stability    | Who can use it                                          | In the docs         |
| ------------ | ------------------------------------------------------- | ------------------- |
| Private beta | Accounts Paid has enrolled, with the `Paid-Beta` header | Not listed          |
| Public beta  | Any account, with the `Paid-Beta` header                | Listed with a badge |
| GA           | Everyone, in a dated version, with no header            | Listed              |

* `GET /v1/betas` lists the betas your account can use: the private betas it is enrolled in, every public beta, and any beta that became GA in a later version than the one your request uses, since it still needs its header on yours. A sandbox organization and its production organization are enrolled separately.
* The response echoes the betas it applied in its own `Paid-Beta` header.
* A breaking change during a beta bumps the beta's version (`=v2`), not the dated API version.
* When a beta becomes GA, it joins the next dated version. On that version and later, it needs no header: for a grace period the header is still accepted and the response carries `Paid-Beta-Deprecated: name=vN; graduated-in=YYYY-MM-DD`, and after it the header is ignored.
* If your account is pinned to an earlier version, the beta keeps working as a beta there: keep sending its header, until you upgrade to the version it graduated in.

Read [Betas and stability](./betas-and-stability) for what each stage promises and how to move off a beta that graduated.

### Beta errors

| Status | Code                   | When                                                                   |
| ------ | ---------------------- | ---------------------------------------------------------------------- |
| `400`  | `unknown_beta`         | `Paid-Beta` names a beta that does not exist, or an entry is malformed |
| `403`  | `beta_not_enabled`     | Your account is not enrolled in the private beta                       |
| `400`  | `beta_header_required` | You called a beta endpoint or sent a beta field without `Paid-Beta`    |

## Related

* [Changelog](./changelog)
* [Betas and stability](./betas-and-stability)
* [Migrate from the legacy API](./migrate-from-legacy)