Skip to navigation

API stability

What can change, what will not, and how you can tell
View as Markdown

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, pagination, errors and 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 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 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.

PlanRequests per month
Free100
Starter500
Pro5,000
Business20,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 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.