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

# API versioning and policies

> How the Lovable API versions changes, what counts as a breaking change, and what happens when a stable version retires.

This page is for anyone whose own code calls the Lovable API. If you build apps in Lovable without calling the API yourself, nothing here affects you.

The Lovable API uses date-based stable versions so the API can keep improving without breaking your integration. You select, or pin, one version per request, and a pinned request keeps its behavior for as long as that version is supported. Lovable releases breaking changes only in a new stable version.

## How versioning works

All endpoints stay under the `/v1` URL path, which does not change when a new stable version is released. Within that path, the stable version you select controls the behavior. Each stable version is named by its release date, in the `YYYY-MM-DD` format. You select a version per request with the `Lovable-Version` header:

```bash theme={null}
curl https://api.lovable.dev/v1/workspaces \
  -H "Lovable-API-Key: lov_YOUR_KEY" \
  -H "Lovable-Version: 2026-09-11"
```

Responses that get as far as selecting a version echo it in a `Lovable-Version` response header. The header is absent on `401`, `402`, `403`, and `429` responses, and on version selection errors.

The [API changelog](https://docs.lovable.dev/api-reference/changelog.md) lists every released stable version and what changed in it. If you send a date that is not a released stable version, the API returns a `400` response with the error type `unknown_version`. A value that is not a single `YYYY-MM-DD` date returns `400 invalid_request` instead. Lovable checks your key, plan, and rate limit before it reads the version, so fix any `401`, `402`, or `429` response first.

Pinning a version does not pin rate or concurrency quotas. See [Rate limits](https://docs.lovable.dev/api-reference/introduction.md#rate-limits).

### If you omit the version header

If you omit `Lovable-Version`, the request uses the oldest supported stable version, which is currently `2026-09-11`. The default is the same for every endpoint and never selects a retired version. The default changes only when the current default version retires.

An integration that does not send the header changes behavior whenever the default changes. Set the version explicitly so upgrades happen when you choose, not when a retirement moves the default.

## Breaking changes

A breaking change is one that could cause an existing integration to stop working or behave differently, for example:

* Removing or renaming an endpoint, property, or header.
* Adding a new required parameter or property.
* Changing the type, format, or meaning of an existing property.
* Changing the response code or error type returned for an existing condition.
* Tightening validation so previously valid requests are rejected.

Lovable releases breaking changes only in a new stable version and groups them into planned releases, with at least six months between them, so you migrate less often. Lovable documents each release in the [API changelog](https://docs.lovable.dev/api-reference/changelog.md) with the affected endpoints and the client changes they require. A release that retires an older version always comes with a migration guide. Requests pinned to an earlier version are unaffected until that version retires.

## Non-breaking changes

Non-breaking changes add to the API without changing existing behavior. Lovable releases them to every supported stable version, without a new version. Non-breaking changes include, for example:

* New endpoints.
* New optional query parameters. The API ignores unknown query parameter names, so existing requests are unaffected.
* New optional request body properties. The API validates request bodies strictly and rejects unknown properties with a `400` response, so you can send a new property only after it is released. Your existing requests are unaffected.
* New properties in responses.
* New values in a field that is already documented to accept them. The endpoint reference marks these fields, with the note that more values may be added and that your code must tolerate values it does not recognize. Adding a value to any other field requires a new stable version.
* New error types. Lovable adds error types over time, so handle the types you know and make sure your code does not fail on a type it does not recognize.

Write your integration to tolerate additive changes: ignore response properties you do not use, and avoid logic that fails when a new error type or property appears.

## Beta revisions

Lovable has not released any beta revisions yet. The rest of this section describes how beta revisions work when one becomes available.

Lovable releases beta functionality as beta revisions. To use one, send the `Lovable-Beta` header with one or more revision strings, separated by commas. A revision string names the feature and ends with a date in the `YYYY-MM-DD` format, for example `project-export-2026-09-07`, and it is case-sensitive. Beta revisions apply on top of the stable version you request.

When a request selects beta revisions, the response includes a `Lovable-Beta` header listing the revisions that were applied.

A beta revision is not part of the stable contract, so Lovable can change the feature before it becomes generally available. The revision you pin keeps its behavior: a breaking change arrives as a new revision, and the one you selected keeps its contract until it retires. A beta revision retires no sooner than 90 days after Lovable publishes its retirement notice. Requests that select beta revisions can return these error types:

| Code | Error type | Description |
| - | - | - |
| `400` | `unknown_beta` | A beta string is not released. |
| `400` | `unsupported_beta_version` | A beta revision does not support the selected stable version. |
| `400` | `conflicting_betas` | Two revisions of one beta feature, or incompatible beta strings, were selected together. |
| `410` | `retired_beta` | The beta revision has retired. When provided, `props.migration_url` links to migration guidance. |

## Deprecation and retirement

A stable version stays supported until both conditions are met: 12 months have passed since its successor became generally available, and it has had at least six months of public retirement notice. A version with no successor stays supported, and a newer version does not shorten an older version's window. Lovable publishes the retirement notice in the [API changelog](https://docs.lovable.dev/api-reference/changelog.md) with a migration guide. The notice states whether the default version changes and, if so, which version replaces it.

After a version retires:

* Requests that pin the retired version return a `410` response with the error type `retired_version`. When provided, `props.migration_url` in the error body links to migration guidance.
* The API-wide default moves to the next oldest supported stable version, so requests without the `Lovable-Version` header use that version automatically instead of failing.
* If no stable version is supported at all, the API returns a `503` response with the error type `no_supported_version`.

To migrate to a newer version:

1. Read the changelog entries and migration guides between your pinned version and the version you are moving to.
2. Update your integration for any breaking changes.
3. Test against the new `Lovable-Version` value before you switch production traffic to it.
