Skip to main content

Onboard

Until the Management API ships, Docbooks is how you create the Organisation and Workspace that booking needs. This is setup, not the daily job — the daily job is Book a document.

Create the Organisation, then POST workspaces under it. Workspaces are not nested in the org body. Scope: docbooks.onboarding (capture-side admin will be docmind.onboarding / Management API). Batch up to 100. uid is ^CHE\d{9}$. actor is required on writes.

POST/api/docbooks/v1/onboarding/organisations
namestringbodyrequired

Legal name.

uidstringbodyrequired

Swiss UID without punctuation (CHE123456789).

extRefstringbodyrequired

Your stable id.

actorobjectbodyrequired

extRef, email, name.

Then:

POST/api/docbooks/v1/onboarding/organisations/{organisationId}/workspaces

Wait for ONBOARDING_FINALISED, then GET /api/docbooks/v1/onboarding/ plus the job id.

Offboard

Same scope. Organisation offboarding cascades workspaces. Workspace offboarding does not.

POST/api/docbooks/v1/offboarding/organisations

Body: actor, organisationIds (1–100), optional reason.

POST/api/docbooks/v1/offboarding/workspaces

Body: actor, workspaceIds (Docbooks ids), optional reason.

Then GET the offboarding job after OFFBOARDING_FINALISED. Per-item status is on that GET.

Tip
Full bodies: Docbooks OpenAPI.