Skip to main content
POST
http://localhost:3000
/
workspaces
curl -X POST 'https://api.example.com/workspaces' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "tenantId": "tenant_acme",
    "name": "Engineering"
  }'
{
  "id": "workspace_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
  "tenantId": "tenant_acme",
  "scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
  "name": "Engineering"
}

Request Body

id
string
Optional client-provided ID. Format: workspace_{uuidv7}
tenantId
string
required
ID of the tenant this workspace belongs to
name
string
required
Display name for the workspace

Response

Returns the created workspace object. Also creates an associated scope automatically and links it to the tenant’s scope hierarchy.
curl -X POST 'https://api.example.com/workspaces' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "tenantId": "tenant_acme",
    "name": "Engineering"
  }'
{
  "id": "workspace_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
  "tenantId": "tenant_acme",
  "scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
  "name": "Engineering"
}