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

# API stability

There is one version of the API, `/api/v1`. It has no dated versions and no version header. It changes by growing.

## Stable and Beta

Every operation is stable or Beta.

* **Stable** operations only grow. The two lists below say what that means.
* **Beta** operations work and may still change. A Beta change is announced in the changelog; the two lists below do
  not apply to it.

Stable today: invoices, proformas, quotes, credit notes and contacts; reading number series and bank accounts; your
user and the list of your workspaces; and what every operation shares: [authentication](/authentication),
[pagination](/pagination), [errors](/errors) and [idempotency](/idempotency).

Beta today: sales orders, purchase orders, delivery notes, e-invoicing and the inbox, transactions and their matching,
bank statements, projects, and everything else in the reference.

The `edocument` and `edocument_preflight` fields of an invoice or credit note are Beta, although the operation that
returns them is stable.

You can tell a Beta operation in three places:

* the [API reference](/api-reference) shows a Beta badge (in the OpenAPI spec the operation carries
  `x-stability-level: beta`);
* every response the API itself produces for it carries the header `Lucanto-Stability: beta` (a `429` from the
  per-minute rate limit and an unhandled `500` do not);
* the description of an [MCP tool](/mcp) starts with `[Beta]`.

## What may change without notice

In a stable operation we may at any time:

* add a resource or an operation;
* add an optional request parameter or body field;
* add a field to a response;
* add a value to an enum in a response;
* add an error code for a new condition;
* keep something longer than we promised.

Write your client so that it ignores fields it does not know and accepts enum values it does not know.

## What we do not do to a stable operation

* remove or rename anything;
* change a type or a meaning;
* make an optional input required;
* add a validation rule to an existing input;
* add a side effect to an existing call.

## When a stable operation has to change

We mark it `deprecated: true` in the spec with a sunset date, send the `Deprecation` and `Sunset` response headers on
it, and leave 12 months between the announcement and the removal.

## MCP tools

The MCP server is a public contract too, with a weaker promise, because an agent reads a tool's description on every
call.

* **Stable tools:** the name of the tool and the meaning of each argument do not change. If we rename a tool, the old
  name keeps working for 3 months. Descriptions may change and optional arguments may be added at any time.
* **Beta tools** may change at any time. A tool is Beta when the resource behind it is Beta in the API or is not in
  the API reference yet.

## Request quota

Every successful request counts towards the workspace's quota, reads included. The quota renews every month on the
day your subscription started.

| Plan     | Requests per month |
| -------- | ------------------ |
| Free     | 100                |
| Starter  | 500                |
| Pro      | 5,000              |
| Business | 20,000             |

Over the quota the API answers `429` with `error: "feature_limit_exceeded"`.

MCP tool calls on a workspace count against the same quota. A request with a personal key or a session that names no
workspace, such as `GET /user`, does not count; a workspace key always acts on its workspace, so every successful
request with it counts. Through the API, a workspace with no active subscription gets `402` with
`error: "subscription_required"`; an MCP tool answers it with a tool error instead.

## Retrying safely

Send an `Idempotency-Key` header with every `POST` that creates or sends something. Lucanto remembers a key for
24 hours, per API key, and answers a repeated request with the first answer instead of doing the work twice; the
[idempotency](/idempotency) page has the details.

Derive the key from your own record, for example `order-10482-invoice`, and do not generate a random one: after a crash
your retry then sends the same key. After the 24 hours, look the document up before you create it again: list the
invoices with `order_number` set to your order's number.