Workspace

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.

GET
/api/v2/workspaces

Authorization

BearerAuthObject
AuthorizationBearer <token>

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",      "planCode": "enterprise",      "planName": "Enterprise",      "ownerEmail": "dkarapetyan@b2broker.com",      "createdAt": "2026-05-10 19:33:48"    }  ]}
Empty
Empty