PricingBlogEnterpriseAPI
Log inStart free
Log inStart free

05 / Endpoints

Workspaces

List workspaces

API key required
GET/api/enterprise/v1/workspaces

Lists the workspaces of the organisation the API key belongs to.

Query Parameters

ParameterDefaultDescription
page1Page number
limit15Items per page (max 100)
statusACTIVEStatus to read: ACTIVE, ARCHIVED or ALL

Query parameters

FieldTypeRequiredDescription
pagestringOptionalPage numberExample: 1
limitstringOptionalItems per pageExample: 15
statusenumOptionalWorkspace status to read (default ACTIVE; ALL includes inactive ones)Allowed: ACTIVE · ARCHIVED · ALL | Example: ALL

Request body

This endpoint takes no request body.

Responses

StatusMeaning
200Workspace list retrievedListWorkspacesResponse
401Authentication failedErrorResponse

Responses 200ListWorkspacesResponse

FieldTypeRequiredDescription
requestIdstringRequired
workspaces[]Workspace[]Required
idstringRequiredWorkspace IDExample: ws_cuid123abc
namestringRequiredWorkspace nameExample: default
isDefaultbooleanRequiredWhether this is the default workspace
statusstringRequiredWorkspace statusExample: ACTIVE
createdAtstringRequiredCreated atExample: 2026-03-30T12:00:00.000Z
paginationPaginationRequired
pagenumberRequiredCurrent pageExample: 1
limitnumberRequiredItems per pageExample: 15
totalnumberRequiredTotal countExample: 1
hasMorebooleanRequiredWhether 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 required
POST/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

FieldTypeRequiredDescription
orgIdstringRequiredOrganization IDExample: org_cuid123abc

Request body

FieldTypeRequiredDescription
namestringRequiredWorkspace name (1 to 30 characters)minLength 1 · maxLength 30 | Example: Creator Kim
Request example
{
  "name": "Creator Kim"
}

Responses

StatusMeaning
201Workspace created
400The workspace name is invalid
401API key missing or invalid
403Access to an organisation outside the API key's scope
409An active workspace with the same name already exists
429Rate limit exceeded

Responses 201

FieldTypeRequiredDescription
requestIdstringRequired
workspaceobjectRequired
idstringRequiredExample: ws_cuid456def
namestringRequiredExample: Creator Kim
isDefaultbooleanRequiredExample: false
statusenumRequiredAllowed: ACTIVE
Response example
{
  "requestId": "string",
  "workspace": {
    "id": "ws_cuid456def",
    "name": "Creator Kim",
    "isDefault": false,
    "status": "ACTIVE"
  }
}

Activate or archive a workspace

API key required
PATCH/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

FieldTypeRequiredDescription
orgIdstringRequiredExample: org_cuid123abc
workspaceIdstringRequiredExample: ws_cuid456def

Request body

FieldTypeRequiredDescription
statusenumRequiredWorkspace status to setAllowed: ACTIVE · ARCHIVED | Example: ARCHIVED
Request example
{
  "status": "ARCHIVED"
}

Responses

StatusMeaning
200Status set
400An attempt to deactivate the default workspace, or a malformed request
401API key missing or invalid
403Access to an organisation outside the API key's scope
404Workspace not found
429Rate limit exceeded

Responses 200

FieldTypeRequiredDescription
requestIdstringRequired
workspaceobjectRequired
idstringRequired
statusenumRequiredAllowed: ACTIVE · ARCHIVED
Response example
{
  "requestId": "string",
  "workspace": {
    "id": "string",
    "status": "ACTIVE"
  }
}