Automation API v1: reference and versioning
The automation API is the door for tools that run for the organisation: n8n, Zapier, Make, Power Automate, an HR system or your own scripts. AI assistants that act for one person use MCP instead. Both doors call the same services, so the same rules apply.
New here? The quickstart runs your first calls against a local instance. Three flows step by step, with the calls and their answers: automation.md (onboarding, offboarding, certificates to the HR system; Zapier, Make and Power Automate). For n8n there is a node.
Where the reference is
Section titled “Where the reference is”| Readable reference with an example for every route | https://<api>/v1/integration-api/docs |
| OpenAPI 3.1 of the automation API alone | https://<api>/v1/integration-api/openapi.json |
| Readable reference of every API route | https://<api>/v1/api-docs |
| OpenAPI 3.1 of every API route (portal routes keep their session rules) | https://<api>/v1/openapi.json |
These answer only in the browser of someone signed in to the portal (ADR 0337); tokens can’t fetch them. The public reference of the automation API is on the docs site, under /en/develop/api/, built from openapi-v1.json.
Every example in the reference is checked against the route’s schemas when the API starts, so it is what the API accepts and answers. Import the OpenAPI document into Postman, Insomnia or a code generator; Make and Power Automate can build a custom connector from it.
Signing in
Section titled “Signing in”-
An organisation administrator creates a machine client under Manage → Integrations → Interfaces → Machine clients and grants only the scopes the flow needs. The secret is shown once.
-
The tool exchanges client id and secret for a token:
POST /v1/integration-oauth/tokenAuthorization: Basic base64(client_id:client_secret)Content-Type: application/x-www-form-urlencodedgrant_type=client_credentials -
It sends
Authorization: Bearer acm_…with every call. A token lasts 15 minutes; get a new one when it runs out (n8n’s credential does this by itself). Revoking the client ends all its tokens at once.
A machine client may call 300 times a minute; above that it gets 429 rate_limited until the next minute. The token endpoint allows 30 requests a minute per IP address. Every credential, and the rules for errors, pages and retries: authentication, API conventions.
Writing safely
Section titled “Writing safely”- Idempotency-Key: send it with every
POST,PUT,PATCHandDELETE(1 to 255 visible characters, e.g. the id of the step run in your tool). A retry with the same key and the same request gets the first answer again, withidempotent-replayed: true, and nothing happens twice. While the first request still runs, a retry is409 idempotency_in_progress; the same key with another request is422 idempotency_key_reused. Keys are kept for 24 hours and belong to the machine client (details). - Find or create:
PUT /v1/integration-api/peoplefinds a person by email or creates them;PUT /v1/integration-api/coursesfinds a course by title or creates a draft. Both answercreated: true|false. - Pages: lists take
limit(1 to 100, default 50) andafter, and answer{"items": […], "next": "<id>"}; passnextasafteruntil it isnull. - Errors answer JSON
{"error": "<code>", "message": "…"}. The code is stable and meant for your flow (not_found,insufficient_scope,validation_failed,above_budget, …); the message is for people. Every code: API conventions.
Scopes
Section titled “Scopes”| Scope | Allows |
|---|---|
people:read / people:write |
read people; create them, change employment fields, invite, deactivate |
courses:read / courses:write |
read courses; find or create a course |
enrollments:write |
assign courses and programmes to people and classes |
programs:read |
read programmes |
classes:read / classes:write |
read classes; create them, set members |
teams:read / teams:write |
read teams; members of teams kept by hand |
requirements:read / requirements:write |
required trainings of teams |
training:read, certificates:read |
training rounds, certificates |
live:read / live:write |
live sessions; register people |
mentoring:write |
pair mentors and mentees |
course-runs:read / course-runs:write |
have the course factory write courses, within the organisation’s budget |
webhooks:read / webhooks:write |
event catalogue; subscriptions (REST hooks) |
The v1 promise
Section titled “The v1 promise”Version 1 stays compatible:
- Routes, fields, scopes, error codes and webhook event types are only ever added.
- A field is never removed or renamed, and never changes its meaning or type. An error code stays what it is.
- A change that would break this comes as a new version (
/v2) beside v1, announced at least 12 months before v1 ends. - Your flow must ignore fields and event types it doesn’t know; that is how additions stay harmless.
Webhook payloads follow the same rule (webhooks.md).