---
title: "List workspaces"
method: GET
path: "/v1/workspaces"
tags: ["WorkspaceService", "Workspaces"]
---

# List workspaces

`GET /v1/workspaces`

Lists all workspaces for the current account

## Query parameters

- `limit` integer
- `cursor` string
- `sortOrder` string
- `includeInfo` boolean
- `labels` string

## Response `200`

OK

- ListWorkspacesResponse
  - `items` Workspace[]
    - `metadata` AccountResourceMetadata, required — AccountResourceMetadata is used to represent a resource that is associated to an account but not to a workspace.
      - `id` string, required — Unique identifier for the resource (prefixed ULID, e.g., "apikey_01HXK...")
      - `accountId` string, required — Account this resource belongs to for multi-tenant isolation (prefixed ULID)
      - `name` string, required — Human-readable name for the resource (e.g., "Customer Support Agent", "Email Tool") Required for resources that users interact with directly
      - `externalId` string — External ID for the resource (e.g., a workflow ID from an external system)
      - `labels` object — Key-value pairs for categorization and filtering. Values are 0-63 alphanumeric characters with "-", "_", or "." allowed between; keys follow the same shape and additionally accept an optional DNS-subdomain prefix (e.g. "cadenya.com/") of at most 253 characters. Examples: {"environment": "production", "team": "platform", "version": "v2"}
      - `profileId` string, required
      - `createdAt` string, date-time
    - `spec` WorkspaceSpec, required
      - `description` string
    - `status` 'STATUS_ENABLED' | 'STATUS_DISABLED' | 'STATUS_ARCHIVED', enum — Lifecycle status of the workspace. Archived workspaces reject all requests scoped to them. Server-populated.
    - `info` WorkspaceInfo — WorkspaceInfo returns counts
      - `totalAvailableTools` integer
      - `totalMemoryEntries` integer
      - `totalAgents` integer
      - `totalAgentVariations` integer
  - `pagination` Page — Page carries cursor-based pagination state. There is no total: the cursor walks the result set without ever counting it, and a count would cost a second query on every list.
    - `nextCursor` string

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/cadenya/apis/cadenya-api.md) · [All operations](https://skmtc.net/cadenya/apis/cadenya-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cadenya/cadenya-api/versions/ac1a7f084068/schema)
