List workspaces in the active organization
Returns every workspace under the caller's active org. The roster is what the dashboard switcher renders; mode-sorted (live first, then sandbox), then by slug.
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
List workspaces in the active organization › Responses
OK
Create a workspace in the active organization
Provisions a new workspace under the caller's active org. Reserved slugs (live, sandbox) are rejected.
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Create a workspace in the active organization › Responses
Created
Fetch a workspace by ID or slug
path Parameters
id_or_slugWorkspace UUID or slug
Workspace UUID or slug
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Fetch a workspace by ID or slug › Responses
OK
Delete a workspace
Removes a workspace. Reserved-slug workspaces (live, sandbox) cannot be deleted - the org always has a live + sandbox pair.
path Parameters
id_or_slugWorkspace UUID or slug
Workspace UUID or slug
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Delete a workspace › Responses
No Content
Update a workspace
Changes the editable workspace fields (name, status). Slug and mode are immutable.
path Parameters
id_or_slugWorkspace UUID or slug
Workspace UUID or slug
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Update a workspace › Responses
OK