WorkspaceAdminService
Workspace Admin

List all workspaces in the account

Changed on

Lists every workspace in the account, optionally including archived ones. Admin only.

get/v1/account/workspaces

Request

  • Base URL
    https://api.cadenya.com
  • URL
    https://api.cadenya.com/v1/account/workspaces
  • Auth
    HTTP bearer

Query parameters

limitinteger

Maximum number of results to return

cursorstring

Pagination cursor from previous response

includeArchivedboolean

When true, archived workspaces are included in the results. Defaults to false (active workspaces only).

labelsstring

Filters by metadata labels. Comma-separated key=value pairs, e.g. "env=prod,team=ai". A resource matches only if every pair matches exactly (AND semantics).

Response

OK

Example response

{
  "items": [
    {
      "metadata": {
        "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
        "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
      }
    }
  ]
}

Changes