API
What the API does
With the Hive Engine API, other systems read and write your data, for example an ERP, a newsletter tool or your own script. The API is a JSON interface over HTTPS. It works with API keys that you create and revoke yourself under Settings → API access.
Version 1 covers the CRM, Quotes & Invoices, Bookkeeping, Production, Tasks and Traceqode. More modules will be added within the same version.
Who can use the API
| Hosting | Requirement |
|---|---|
| Shared hosting | Business plan |
| Enterprise (own server) | Every enterprise licence |
| Fiduciary Mandanten | The Mandant’s lead switches on API access for this Mandant. The key is then Read only or Read and write and covers the Mandant’s pack. |
Payroll is never available through the API. Its bookings and payments do appear in the Bookkeeping journal and bank data, like any other booking (Bookkeeping reference). Admin areas are not available either: a key never acts as an admin.
How the API is built
- Base address:
https://<your-instance>/api/v1 - A key belongs to exactly one company (in a fiduciary setup: exactly one Mandant). A key works with the permissions of its role, exactly like a person with that role.
- Every response is JSON. Errors always have the same shape (see Conventions).
Interactive reference
Every Hive Engine instance has a complete, interactive API reference at https://<your-instance>/api/v1/docs (Swagger UI). It is only available with a Hive Engine login: without one you land on the login page. It lists every endpoint, grouped by module and topic, with its parameters, request body, response and the permission it needs. Click Authorize, paste your key and try calls directly in the browser. In the app, Settings → API access links to it with Open the API reference.
The machine-readable description (OpenAPI 3.1) is at https://<your-instance>/api/v1/openapi.json. It is only served with a login or with an API key in the Authorization: Bearer <key> header. That way you can load it into Postman, Insomnia or a code generator to create a client.
Pages in this documentation
| Page | Contents |
|---|---|
Interactive reference (/api/v1/docs) | Every endpoint with parameters and responses, to try in the browser |
| Getting started | Create a key, first request with curl, /me |
| Conventions | Formats, paging, fetching changes, deletion lists, idempotency, error codes, limits, versioning |
| CRM reference | Every CRM endpoint with an example |
| Quotes & Invoices reference | Documents, drafts and catalogue with examples |
| Bookkeeping reference | Chart of accounts, journal, reports, receivables, payables and bank with examples |
| Production reference | Raw materials, lots, goods receipt, products, recipes and batches (read only) with examples |
| Tasks reference | Boards, columns, tasks, subtasks, comments and links with examples |
| Traceqode – reference | Brand, products, batches, lab values, suppliers, certifications, recipes, packaging and translations; publishing stays in Hive Engine |
| API access (Settings) | Create and revoke keys in the app |