Skip to content
LogoLogo

Create the caller's first Workspace

Create the caller's first Workspace

POST/api/v1/workspaces/bootstrap

Creates the first Workspace, owner membership, and Actor for a signed-in account that has no active Workspace memberships. The caller selects both the visible name and canonical URL segment.

Success rotates the account-only session into the new Workspace and replaces both browser-session cookies. Concurrent requests are serialized so at most one first Workspace is created for an account. A caller that already has a Workspace receives 409 and must use the normal session-switch operation instead.

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.

Request Body

application/json
nameRequired
string·min 1·max 100

Trimmed before validation.

slugRequired
string·min 1·max 63

The unique canonical Workspace URL segment.

Responses