Create Workspace
Workspaces
Create Workspace
Create a new workspace with an auto-generated API key
POST
Create Workspace
POST /workspaces
Create a new workspace. The calling user becomes theowner of the new workspace, and default workspace settings are initialized automatically.
Notes
- Requires admin role in the current workspace.
- Request body requires an
identifierstring (a human-readable name for the workspace). - The response includes a plaintext
api_keyfor the new workspace. This is the only time it is visible — store it securely. - The workspace API key is stored as an HMAC-SHA256+PBKDF2 hash and cannot be retrieved later.
- The calling user is assigned the
ownerrole in the newly created workspace. - Default workspace settings are created automatically. Use
GET /workspaces/{workspace_id}/settingsto inspect orPATCH /workspaces/{workspace_id}/settingsto customize them.
