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

# List the caller's workspaces (membership-scoped)



## OpenAPI

````yaml /openapi.json get /api/workspaces
openapi: 3.1.0
info:
  title: Syvon API
  version: 1.0.0
  description: >-
    Two client-facing surfaces: the Portal management plane (syvon.ai/api/*,
    portal JWT) and the Brain read plane (brain.syvon.ai/v1/*, workspace key
    sk_ws_…). Schemas are generated from the @syvon/sdk TypeScript types — the
    shipped .d.ts files are the authoritative contract.
servers:
  - url: https://syvon.ai
    description: Portal (management plane)
  - url: https://brain.syvon.ai
    description: Brain (read plane)
security: []
tags:
  - name: Auth
    description: Minting the portal JWT
  - name: Portal
    description: Management plane — user-scoped (portal JWT)
  - name: Brain
    description: Published-agent read plane — workspace-scoped (sk_ws_…)
paths:
  /api/workspaces:
    get:
      tags:
        - Portal
      summary: List the caller's workspaces (membership-scoped)
      operationId: listWorkspaces
      responses:
        '200':
          description: Workspace list
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceListItem'
      security:
        - bearerAuth: []
      servers:
        - url: https://syvon.ai
components:
  schemas:
    WorkspaceListItem:
      type: object
      description: ''
      properties:
        id:
          description: ''
          type: string
        name:
          description: ''
          type: string
        slug:
          description: ''
          type: string
        type:
          $ref: '#/components/schemas/WorkspaceType'
          description: ''
        origin:
          $ref: '#/components/schemas/WorkspaceOrigin'
          description: ''
        role:
          $ref: '#/components/schemas/MemberRole'
          description: ''
        ownerId:
          description: ''
          type: string
        memberCount:
          description: ''
          type: number
        createdAt:
          description: ''
          type: string
        logoKey:
          description: Workspace-relative r2 key of the default brand's logo, if any.
          anyOf:
            - type: string
            - type: 'null'
      required:
        - id
        - name
        - slug
        - type
        - origin
        - role
        - ownerId
        - memberCount
        - createdAt
        - logoKey
    WorkspaceType:
      type: string
    WorkspaceOrigin:
      type: string
    MemberRole:
      type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Portal API JWT (user-scoped, ~1h)

````