sdkDeterministic
List workspaces
pipeline.listWorkspaces
List every workspace the authenticated account can currently access, including each workspace ID, slug, ownership state, and live permissions. Use this before a workspace-scoped operation when the target workspace is not explicit. Never choose a workspace based on recency or list order.
Parameters
This operation has no parameters.
Example
TypeScripttypescript
await pipeline.listWorkspaces({})
Response
Success response schemajson schema
{"type": "object","properties": {"workspaces": {"type": "array","items": {"type": "object","properties": {"id": {"type": "string"},"name": {"type": "string"},"slug": {"type": "string"},"isOwner": {"type": "boolean"},"permissions": {"type": "object"}},"required": ["id","name","slug","isOwner","permissions"]}}},"required": ["workspaces"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.