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

# List Workspaces

> Lists the Workspaces the caller can work in: every Workspace for a caller whose access covers them all (workspaces:read, or any global permission on Workspace objects), otherwise those the caller holds a Workspace-scoped role in. The Default workspace comes first. Enterprise Edition.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /workspaces
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /workspaces:
    get:
      tags:
        - workspaces
      summary: List Workspaces
      description: >-
        Lists the Workspaces the caller can work in: every Workspace for a
        caller whose access covers them all (workspaces:read, or any global
        permission on Workspace objects), otherwise those the caller holds a
        Workspace-scoped role in. The Default workspace comes first. Enterprise
        Edition.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    $ref: '#/components/schemas/api.WorkspaceResponse'
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
      security:
        - BearerAuth: []
components:
  schemas:
    api.WorkspaceResponse:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.WorkspaceAttributes'
        id:
          type: string
        type:
          type: string
      description: Workspace response model
    authz.ErrorBody:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/authz.Error'
    api.WorkspaceAttributes:
      type: object
      properties:
        created_at:
          type: string
        description:
          type: string
        is_default:
          type: boolean
        name:
          type: string
        updated_at:
          type: string
      description: Workspace attributes
    authz.Error:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        permission:
          type: string
        title:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````