05 / Endpoints
Workspaces
List workspaces
API key requiredGET/api/enterprise/v1/workspaces
Lists the workspaces of the organisation the API key belongs to.
Query Parameters
| Parameter | Default | Description |
|---|---|---|
page | 1 | Page number |
limit | 15 | Items per page (max 100) |
status | ACTIVE | Status to read: ACTIVE, ARCHIVED or ALL |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| page | string | Optional | Page numberExample: 1 |
| limit | string | Optional | Items per pageExample: 15 |
| status | enum | Optional | Workspace status to read (default ACTIVE; ALL includes inactive ones)Allowed: ACTIVE · ARCHIVED · ALL | Example: ALL |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Workspace list retrievedListWorkspacesResponse |
| 401 | Authentication failedErrorResponse |
Responses 200ListWorkspacesResponse
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| workspaces[] | Workspace[] | Required | |
| id | string | Required | Workspace IDExample: ws_cuid123abc |
| name | string | Required | Workspace nameExample: default |
| isDefault | boolean | Required | Whether this is the default workspace |
| status | string | Required | Workspace statusExample: ACTIVE |
| createdAt | string | Required | Created atExample: 2026-03-30T12:00:00.000Z |
| pagination | Pagination | Required | |
| page | number | Required | Current pageExample: 1 |
| limit | number | Required | Items per pageExample: 15 |
| total | number | Required | Total countExample: 1 |
| hasMore | boolean | Required | Whether a next page exists |
Response example
{
"requestId": "string",
"workspaces": [
{
"id": "ws_cuid123abc",
"name": "default",
"isDefault": false,
"status": "ACTIVE",
"createdAt": "2026-03-30T12:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 15,
"total": 1,
"hasMore": false
}
}Create a workspace in the organisation
API key requiredPOST/api/enterprise/v1/organizations/{orgId}/workspaces
Creates an active workspace in the organisation the API key is bound to. Create a workspace for one creator, then assign the member and their role with PUT .../members/{userId}. There is no API limit on the number of active workspaces.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Workspace name (1 to 30 characters)minLength 1 · maxLength 30 | Example: Creator Kim |
Request example
{
"name": "Creator Kim"
}Responses
| Status | Meaning |
|---|---|
| 201 | Workspace created |
| 400 | The workspace name is invalid |
| 401 | API key missing or invalid |
| 403 | Access to an organisation outside the API key's scope |
| 409 | An active workspace with the same name already exists |
| 429 | Rate limit exceeded |
Responses 201
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| workspace | object | Required | |
| id | string | Required | Example: ws_cuid456def |
| name | string | Required | Example: Creator Kim |
| isDefault | boolean | Required | Example: false |
| status | enum | Required | Allowed: ACTIVE |
Response example
{
"requestId": "string",
"workspace": {
"id": "ws_cuid456def",
"name": "Creator Kim",
"isDefault": false,
"status": "ACTIVE"
}
}Activate or archive a workspace
API key requiredPATCH/api/enterprise/v1/organizations/{orgId}/workspaces/{workspaceId}
Sets the workspace status to ACTIVE or ARCHIVED. Requesting the same status again still succeeds. The default workspace cannot be deactivated.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Example: org_cuid123abc |
| workspaceId | string | Required | Example: ws_cuid456def |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| status | enum | Required | Workspace status to setAllowed: ACTIVE · ARCHIVED | Example: ARCHIVED |
Request example
{
"status": "ARCHIVED"
}Responses
| Status | Meaning |
|---|---|
| 200 | Status set |
| 400 | An attempt to deactivate the default workspace, or a malformed request |
| 401 | API key missing or invalid |
| 403 | Access to an organisation outside the API key's scope |
| 404 | Workspace not found |
| 429 | Rate limit exceeded |
Responses 200
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| workspace | object | Required | |
| id | string | Required | |
| status | enum | Required | Allowed: ACTIVE · ARCHIVED |
Response example
{
"requestId": "string",
"workspace": {
"id": "string",
"status": "ACTIVE"
}
}


