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

# List workspaces

> List Workspaces accessible to the authenticated token



## OpenAPI

````yaml /openapi/qlty-api.json get /workspaces
openapi: 3.1.0
info:
  title: Qlty API
  version: 1.0.0
  description: >-
    The Qlty API is organized around REST. It provides predictable,
    resource-oriented URLs, accepts JSON-encoded request bodies, and returns
    JSON-encoded responses.
servers:
  - url: https://api.qlty.sh
security:
  - BearerAuth: []
  - BasicAuth: []
tags:
  - name: User
    description: Operations for the authenticated user
  - name: Workspaces
    description: Operations for managing workspaces
  - name: Projects
    description: Operations for managing projects
  - name: Issues
    description: Operations for managing issues
  - name: Metrics
    description: Operations for retrieving metrics
paths:
  /workspaces:
    get:
      tags:
        - Workspaces
      summary: List workspaces
      description: List Workspaces accessible to the authenticated token
      operationId: listWorkspaces
      parameters:
        - name: page[limit]
          in: query
          description: Maximum number of items to return in a single response
          schema:
            type: integer
        - name: page[offset]
          in: query
          description: Number of items to skip for pagination
          schema:
            type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkspacesResponse'
              example:
                meta:
                  hasMore: false
                data:
                  - id: 1c47b6fd-db56-4fbd-9cf0-4d88f9631050
                    key: acmeco
                    avatarUrl: https://assets.github.com/acmeco.png
                    providerUrl: https://github.com/acmeco
                    createdAt: '2023-01-15T08:30:00Z'
                    updatedAt: '2023-02-20T14:45:00Z'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '429':
          $ref: '#/components/responses/TooManyRequestsError'
components:
  schemas:
    ListWorkspacesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Workspace'
          description: List of Workspace items returned in the response
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - data
        - meta
    Workspace:
      type: object
      properties:
        id:
          type: string
          description: The UUID of the Workspace
        key:
          type: string
          description: The unique key identifier for the Workspace
        avatarUrl:
          type: string
          description: URL to the Workspace's avatar or logo image
        providerUrl:
          type: string
          description: >-
            URL to the Workspace on the provider platform (e.g., GitHub
            organization URL)
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the Workspace was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the Workspace was last updated
      required:
        - id
        - key
        - avatarUrl
        - providerUrl
        - createdAt
        - updatedAt
    PaginationMeta:
      type: object
      properties:
        hasMore:
          type: boolean
          description: Indicates if there are more items available for pagination
      required:
        - hasMore
    ErrorBody:
      type: object
      properties:
        status:
          type: string
          description: The HTTP status code of the error
        title:
          type: string
          description: A short, human-readable summary of the error
        detail:
          type: string
          description: A detailed explanation of the error
      required:
        - status
  responses:
    BadRequestError:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    ForbiddenError:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    NotFoundError:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    TooManyRequestsError:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Generate an API token at https://qlty.sh/user/settings/tokens
    BasicAuth:
      type: http
      scheme: basic
      description: Use your API token as the username with an empty password

````