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

# API reference

The reference in this section is generated directly from Lucanto's live
OpenAPI specification at
[`app.lucanto.eu/api/v1/openapi.json`](https://app.lucanto.eu/api/v1/openapi.json),
so it always matches the deployed API.

## Conventions

* **Base URL:** `https://app.lucanto.eu/api/v1`
* **Auth:** `Authorization: Bearer <token>` — see [Authentication](/authentication)
* **Workspace scoping:** every resource lives under `/accounts/{account_id}/...`
* **Lists:** cursor-paginated `{ data, next_cursor, has_more }` — see [Pagination](/pagination)
* **Errors:** a uniform envelope with a stable `error` code — see [Errors](/errors)
* **Retries:** `POST` supports the `Idempotency-Key` header — see [Idempotency](/idempotency)

## Resources

Invoices, Quotes, Proformas, Credit Notes, Expenses, Contacts, Bank
Accounts, and Accounts. Use the API Explorer on each endpoint to make live
calls with your own token.