Authentication
All /v1 endpoints and the MCP endpoint use API keys:
Authorization: Bearer einv_test_9fK2…
X-API-Key: <key> is accepted as an alternative header.
Test and live keys
| Prefix | Mode | Billed | Available on |
|---|---|---|---|
einv_test_ |
sandbox | never | all plans |
einv_live_ |
live | yes, per document | Developer and Growth |
Both modes run the same official validation. Results and stored invoices are separated by mode: a test key never sees live data and the reverse.
Scopes
| Scope | Allows |
|---|---|
validate |
validate, analyze a rejection, route a document, test data, widget sessions, POST /v1/batches |
parse |
POST /v1/invoices/parse, POST /v1/invoices/compare |
convert |
POST /v1/invoices/convert; create from JSON or an export (/v1/invoices/generate, /v1/invoices/generate/csv, /v1/invoices/generate/xml); repair (POST /v1/invoices/fix) |
invoices:read |
list, get and download stored invoices, their repairs and evidence; monitoring; routed documents; failures (dead letters); integration health |
invoices:delete |
delete stored invoices |
usage:read |
GET /v1/usage |
mcp |
the MCP endpoint |
keys:write |
manage API keys; create, list, change and delete delivery routes; retry routed documents, failed jobs and webhook deliveries |
partner |
the partner API (/v1/partner/*): customers, their keys and usage; see partners |
ci |
marks the key as a CI key: its calls are recorded as CI checks. A CI key can only have validate besides ci |
GET /v1/account, GET /v1/jobs/{id}, formats, rules, test-case listing and the compliance register need no scope, only a valid key.
New keys get every scope except keys:write, partner and ci. Create narrower keys for narrower jobs, for example a CI key with ci and validate for a pipeline.
OAuth for MCP clients
The MCP endpoint (/mcp) also accepts OAuth 2.1 access tokens, so apps such as Claude custom connectors can connect without an API key: the user signs in, picks an organization, test or live mode and the permissions. Such a connection counts like an API key of that organization and mode (same limits, quota and isolation), works only for /mcp, and can be disconnected under Dashboard → Developers → Connected apps. Endpoints and scopes: MCP setup.
Storage and rotation
- The full key is shown once, at creation. We store only an HMAC of it.
- Rotate a key in the dashboard or with
POST /v1/api_keys/{id}/rotate: you get a new key and the old one stops working immediately. - Revoke with
DELETE /v1/api_keys/{id}. Keys can also be created with an expiry.
Errors
| HTTP | error.code |
Meaning |
|---|---|---|
| 401 | missing_api_key |
No key sent |
| 401 | invalid_api_key |
Unknown, revoked or expired key |
| 403 | insufficient_scope |
Key lacks the scope for this endpoint |
| 402 | plan_required |
Live keys or the feature need a paid plan |
E-Invoicing API