> ## Documentation Index
> Fetch the complete documentation index at: https://docs.visceralai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List Workspaces

> Workspaces of every org the caller belongs to (the CLI's picker).



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces
openapi: 3.1.0
info:
  title: Visceral Backend
  version: 0.2.0
  description: >-
    The Visceral backend HTTP API. SDK and ingestion endpoints authenticate with
    a workspace API key; dashboard and CLI endpoints authenticate with a user
    session token. Both are sent as `Authorization: Bearer <token>`.
servers:
  - url: https://api.visceralai.dev
security: []
paths:
  /v1/workspaces:
    get:
      tags:
        - keys
      summary: List Workspaces
      description: Workspaces of every org the caller belongs to (the CLI's picker).
      operationId: list_workspaces_v1_workspaces_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/WorkspaceInfo'
                type: array
                title: Response List Workspaces V1 Workspaces Get
      security:
        - sessionToken: []
components:
  schemas:
    WorkspaceInfo:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        org_id:
          type: string
          format: uuid
          title: Org Id
        org_name:
          type: string
          title: Org Name
      type: object
      required:
        - id
        - name
        - org_id
        - org_name
      title: WorkspaceInfo
  securitySchemes:
    sessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Short-lived user access token (ES256 JWT) issued by `POST
        /v1/auth/login` or the CLI device flow.

````