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

# List workspaces

> Lists all workspaces owned by the authenticated user.



## OpenAPI

````yaml /spec/ai-workspaces.yaml get /v1/workspaces
openapi: 3.0.1
info:
  title: AI - Workspaces
  description: >-
    Manage AI workspaces. Workspaces are the primary organizational unit for AI
    resources.

    Each workspace has a plan (base, standard, pro), a state (ACTIVE, FROZEN),
    and provider preferences.


    Parameters:

    - `teamID`: To access services in a team (query param or `x-teamid` header)


    Authentication: JWT Bearer token sent via the `Authorization` header.
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://ai.liara.ir
security:
  - jwt: []
tags:
  - name: Workspaces
    description: Workspace CRUD operations
  - name: Workspace Actions
    description: Workspace actions (resize, unfreeze, provider preferences)
  - name: Workspace Activity
    description: Usage activity and free token tracking
  - name: Model Limits
    description: Model-specific limits within a workspace
externalDocs:
  description: Find out more about Liara AI
  url: https://liara.ir
paths:
  /v1/workspaces:
    get:
      tags:
        - Workspaces
      summary: List workspaces
      description: Lists all workspaces owned by the authenticated user.
      operationId: listWorkspaces
      responses:
        '200':
          description: List of workspaces
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceListResponse'
        '401':
          description: Missing authentication
          content: {}
components:
  schemas:
    WorkspaceListResponse:
      type: object
      properties:
        workspaces:
          type: array
          items:
            $ref: '#/components/schemas/WorkspaceSummary'
    WorkspaceSummary:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        state:
          type: string
          enum:
            - ACTIVE
            - FROZEN
        plan:
          type: string
          enum:
            - base
            - standard
            - pro
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    jwt:
      type: apiKey
      description: 'Enter the token with the `Bearer: ` prefix, e.g. "Bearer abcde12345"'
      name: Authorization
      in: header

````