Workspaces of the active organization (for example a live and a sandbox workspace): list, create, read, update and delete.
List workspaces in the active organization
Returns every workspace of your active organization: the live workspace first, then the sandboxes, each group by slug. From 2026-11-30 this list answers {data: [...], pagination}, like every other list.
Required scope: workspace.read (Read workspaces).
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
Creates a sandbox workspace in your active organization. The slugs live and sandbox are reserved. An organization has exactly one live workspace, so environment must be sandbox.
Required scope: workspace.manage (Manage workspaces).
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 › Request Body
nameThe workspace's display name.
slugThe workspace's handle, unique in the organization. live and sandbox are reserved.
environmentsandbox. Only sandbox workspaces can be created: an organization has exactly one live workspace. Required unless mode is sent.
modeThe same value as environment. Send one of the two. Deprecated: use environment instead. Removed on 2026-11-30.
Create a workspace in the active organization › Responses
Created
Fetch a workspace by ID or slug
Returns one workspace of your active organization, addressed by its UUID or its slug (such as live or sandbox). A workspace of another organization answers 404, the same as one that does not exist.
Required scope: workspace.read (Read workspaces).
path Parameters
id_or_slugWorkspace 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.
Required scope: workspace.manage (Manage workspaces).
path Parameters
id_or_slugWorkspace 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 workspace's name. Slug and environment cannot be changed. To restrict what an organization may do, place a restriction on the organization itself.
Required scope: workspace.manage (Manage workspaces).
path Parameters
id_or_slugWorkspace 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