Introduction
What the KontoBee API does, how requests and responses are structured, and which limits apply.
The KontoBee API is a REST interface for uploading receipts and retrieving the extracted data including the assigned bookkeeping — from your own systems, scripts or AI agents. All endpoints live under the path /api/partner/v1/, and responses come back as JSON.
Base URL
The KontoBee app shows your base URL in the API → API Keys section — look for the “API base URL” field with a copy button. That is the API host, not the app address in your browser. The examples on these pages use the variable $BASE for it:
BASE="…" # API base URL from the app, section API → API Keys
All requests run over HTTPS — unencrypted requests are rejected.
Anatomy of a request
Every request needs an API key in the X-Partner-Api-Key header (see Authentication). A simple first request is reading your usage:
curl -sS "$BASE/api/partner/v1/usage" \
-H "X-Partner-Api-Key: $API_KEY"
Asynchronous processing
Receipt processing is asynchronous: an upload immediately returns 202 Accepted with a taskId. You poll the status with it until processing finishes — then the document endpoint returns the extracted fields and the bookkeeping assignment.
Error responses
Errors come back as a JSON object with a stable code, a description, and a requestId you can include in support requests:
{
"code": "PARTNER_SCOPE_INSUFFICIENT",
"message": "The API key does not have the required scope for this operation.",
"requestId": "4f6a1c2e-…"
}
Limits
- Rate limit: currently 600 requests per minute per key. Above that, the API responds with
429and aRetry-Afterheader. - Quota: API processing counts against your plan’s regular quota. Once the booking quota is used up, uploads are rejected with
409 NOT_ENOUGH_CREDITS; if only the OCR quota is missing, the task ends with the statusFAILED. - File size: up to 10 MB per receipt.
More in the app
The API section of the app has a quick start, runnable code examples (cURL, Python, Java, C#, JavaScript) and the full API reference (OpenAPI) with all endpoints and fields.
Next steps
- Authentication — create and use an API key.
- Upload a receipt — capture your first receipt via the API.