Create a workspace
Workspaces
Create a workspace
Creates the caller’s workspace — a sandbox tenant, their owner membership, and one ck_test_ key, atomically. One workspace per account.
Session-only. A key minting workspaces would be a privilege-escalation loop, so API keys are refused with 401.
POST
Create a workspace
Authorizations
A dashboard session — the short-lived JWT a signed-in human holds at the dashboard, sent on the same Authorization: Bearer header. Dispatched by shape: a session token is a JWT, an API key starts with ck_. Sessions cannot be created through this API, and operations that list only this scheme refuse API keys with 401.
Body
application/json