Workspace
Esta página no está disponible en español. Se muestra la versión en inglés.
List workspaces visible to the caller
For cross-workspace users (root/Owner/SuperAdmin) returns every non-deleted workspace, unless `X-Workspace-Id` header narrows to a single one. Other roles see only their own workspace.
Authorization
BearerAuthObject AuthorizationBearer <token>
Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.
In: header
Response Body
application/json
curl -X GET "https://example.com/api/v2/workspaces"{ "workspaces": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "B2Broker", "slug": "b2broker", "hasTenantPlans": true, "planCode": "enterprise", "planName": "Enterprise", "ownerEmail": "dkarapetyan@b2broker.com", "createdAt": "2026-05-10 19:33:48", "status": "active", "statusSource": "auto" } ]}Empty
Empty