> 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.

# Lucanto API

The Lucanto API lets you integrate invoicing into your e-shop, accounting
software, CRM, or custom automation. Everything you can do in the Lucanto
app, you can do over a clean REST API — or hand to an AI agent over MCP.

Create an API key and make your first call in under five minutes.

Personal access tokens vs. workspace tokens, and how scopes work.

Cursor-based pagination on every list endpoint.

Safe retries on POST with the Idempotency-Key header.

The canonical error envelope and how to handle it.

Connect Claude, Cursor, or ChatGPT to your Lucanto workspace.

## Base URL

All endpoints are served from:

```
https://app.lucanto.eu/api/v1
```

Every resource is scoped to a workspace via the `account_id` path segment,
e.g. `GET /api/v1/accounts/{account_id}/invoices`.