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:
Lovable-Version response header. The header is absent on 401, 402, 403, and 429 responses, and on version selection errors.
The API changelog 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.
If you omit the version header
If you omitLovable-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.
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
400response, 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.
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 theLovable-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:
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 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
410response with the error typeretired_version. When provided,props.migration_urlin the error body links to migration guidance. - The API-wide default moves to the next oldest supported stable version, so requests without the
Lovable-Versionheader use that version automatically instead of failing. - If no stable version is supported at all, the API returns a
503response with the error typeno_supported_version.
- Read the changelog entries and migration guides between your pinned version and the version you are moving to.
- Update your integration for any breaking changes.
- Test against the new
Lovable-Versionvalue before you switch production traffic to it.