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

# List Teams

> Read the workspace's teams. Team IDs returned here can be passed in a task's assignees array alongside user and location IDs.



## OpenAPI

````yaml GET /api/v1/mgt/workspaces/{workspaceId}/teams
openapi: 3.1.0
info:
  title: Xenia Team API - List Teams
  version: 1.0.0
  description: >-
    Lists the workspace's teams so a client can resolve team IDs for task
    assignment.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/teams:
    get:
      tags:
        - Teams
      summary: List Teams
      description: >-
        Read the workspace's teams. Team IDs returned here can be passed in a
        task's assignees array alongside user and location IDs.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be your key's own workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
      responses:
        '200':
          description: Teams retrieved.
          content:
            application/json:
              example:
                data:
                  - id: 3ab9c8d7-2222-4bbb-8ccc-1e2f3a4b5c6d
                    name: Merchandising
                    description: Store merchandising team
                meta: {}
        '401':
          description: >-
            Unauthorized - invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: Forbidden - API key not authorized for this route.
        '500':
          description: Internal server error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````