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.
/api/docbooks/v1/onboarding/organisationsnamestringbodyrequiredLegal name.
uidstringbodyrequiredSwiss UID without punctuation (CHE123456789).
extRefstringbodyrequiredYour stable id.
actorobjectbodyrequiredextRef, email, name.
Then:
/api/docbooks/v1/onboarding/organisations/{organisationId}/workspacesWait for ONBOARDING_FINALISED, then GET /api/docbooks/v1/onboarding/ plus the job id.
Offboard
Same scope. Organisation offboarding cascades workspaces. Workspace offboarding does not.
/api/docbooks/v1/offboarding/organisationsBody: actor, organisationIds (1–100), optional reason.
/api/docbooks/v1/offboarding/workspacesBody: actor, workspaceIds (Docbooks ids), optional reason.
Then GET the offboarding job after OFFBOARDING_FINALISED. Per-item status is on that GET.