Skip to content
LogoLogo

Create a Workspace

Create a Workspace

POST/api/v1/workspaces

Claims and creates the signed-in human account's one active Free Workspace, provisioning the Workspace, owner membership, Actor, default workflow, claim, and events in one transaction. Membership and role in the selected Workspace do not grant or deny this account-level command.

The optional slug selects the canonical URL segment. When omitted, Core generates a collision-safe value from the name.

Creation does not switch the calling session onto the new Workspace. Changing scope is PUT /api/v1/auth/session/workspace, which always rotates the session and CSRF secrets; doing it as a side effect here would rotate them invisibly.

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
nameRequired
string·min 1·max 100

Trimmed before validation.

slug
string·min 1·max 63

Optional unique canonical Workspace URL segment.

Responses