Skip to content
Open Console

List workspaces

1 min readUpdated

GET/v1/me/workspaces

Return only the workspace projections granted to the caller. Each combines an organization, an attached tenant, the caller’s role, and effective capabilities. Copy organization_id and the selected nested tenant_id into the two workspace headers. Selecting the projection supplies context; the workspace does not own the tenant or its resources. An authenticated caller with no active organization membership receives { "workspaces": [] }. A developer or viewer who belongs to an organization but has no granted tenant remains visible as that organization with "tenants": []; tanomis workspace ls renders its tenant as (none). Owners and administrators see the organization’s attached tenants.

Generated from the Platform API specification on 2026-09-04.

Header Required Description
Authorization yes Bearer plus a short-lived OAuth access token issued for the Tanomis API audience. Backends obtain tokens with an organization automation client; the CLI’s human login is not an application credential.
X-Organization-ID yes The organization_id from the workspace projection you selected in GET /v1/me/workspaces.
X-Workspace-Tenant-ID yes The nested tenant_id from the same projection. A header cannot widen what the token grants. Some single-workspace or self-hosted environments take X-Tenant-ID instead, as supplied by their administrator.
Status Meaning
200 The caller’s projections.
Terminal
curl -X GET "https://api.tanomis.com/v1/me/workspaces" \
-H "Authorization: Bearer $TANOMIS_TOKEN" \
-H "X-Organization-ID: $TANOMIS_ORG" \
-H "X-Workspace-Tenant-ID: $TANOMIS_WORKSPACE"
200 OK
{
"workspaces": [
{
"organization_id": "org_abc123",
"organization_slug": "northwind",
"organization_display_name": "Northwind",
"role": "developer",
"tenants": [
{
"tenant_id": "customer-production",
"state": "ready",
"is_default": true,
"capabilities": [
"run",
"view"
]
}
]
}
]
}