Workspaces
Workspace management
List workspaces
GET
/v1/workspacesLists all workspaces in the user's organization.
Query parameters
| Name | Type | Description |
|---|---|---|
organization_public_id | string | Filter by organization. Defaults to the user's current organization. |
Response 200 — Successful response
| Name | Type | Description |
|---|---|---|
ok (required) | boolean | |
workspaces (required) | WorkspaceListItem[] |
Fields of workspaces
| Name | Type | Description |
|---|---|---|
workspaces[].public_id (required) | string | |
workspaces[].name (required) | string | |
workspaces[].active (required) | boolean | |
workspaces[].favorite (required) | boolean | |
workspaces[].provision_status (required) | string |
Example response
{
"ok": true,
"workspaces": [
{
"public_id": "workm4lz2mp899l2i7h9lk9u84azg3",
"name": "production-analytics",
"active": true,
"favorite": true,
"provision_status": "provisioned"
}
]
}
Errors
| Status | Description |
|---|---|
401 | Missing or invalid authorization |
403 | Forbidden — not a member of the organization or workspace token used |
404 | Organization not found |
Create a workspace
POST
/v1/workspacesCreates a new workspace in the specified organization.
Request body
| Name | Type | Description |
|---|---|---|
name (required) | string | Name for the new workspace. |
organization_public_id | string | Target organization. Defaults to the user's current organization. |
Example request
{
"name": "production-analytics"
}
Response 201 — Workspace created
| Name | Type | Description |
|---|---|---|
ok (required) | boolean | |
workspace (required) | WorkspaceDetail |
Fields of workspace
| Name | Type | Description |
|---|---|---|
workspace.public_id (required) | string | |
workspace.name (required) | string | |
workspace.provision_status (required) | string |
Example response
{
"ok": true,
"workspace": {
"public_id": "workm4lz2mp899l2i7h9lk9u84azg3",
"name": "production-analytics",
"provision_status": "pending"
}
}
Errors
| Status | Description |
|---|---|
400 | Invalid JSON body |
401 | Missing or invalid authorization |
403 | Forbidden |
404 | Organization not found |
422 | Validation error (e.g. name required) |
Delete a workspace
DELETE
/v1/workspaces/{public_id}Hard-deletes the workspace. Namespace, storage, and catalog deprovisioning runs asynchronously after the row is removed.
Response 204 — Workspace deleted
Errors
| Status | Description |
|---|---|
401 | Missing or invalid authorization |
403 | Workspace-scoped tokens are not allowed |
404 | Workspace not found, or caller is not a member of its organization |