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

# List Teams In Workspace

> List all teams in a workspace that the user can access.

Workspace owners see every team. Members see the teams they've been added to.

Only active teams are returned unless the status filter says otherwise.



## OpenAPI

````yaml /api-reference/openapi.json get /workspaces/{workspace_id}/teams
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Teams
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Collections
  - name: Canvases
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /workspaces/{workspace_id}/teams:
    get:
      tags:
        - Workspaces
      summary: List Teams In Workspace
      description: >-
        List all teams in a workspace that the user can access.


        Workspace owners see every team. Members see the teams they've been
        added to.


        Only active teams are returned unless the status filter says otherwise.
      operationId: list_teams_in_workspace
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: status
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/TeamStatusFilter'
            description: >-
              Filter teams by active status (active, inactive, or all). Defaults
              to active.
            default: active
          description: >-
            Filter teams by active status (active, inactive, or all). Defaults
            to active.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TeamResponse'
                title: >-
                  Response List Teams In Workspace Workspaces  Workspace Id 
                  Teams Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TeamStatusFilter:
      type: string
      enum:
        - active
        - inactive
        - all
      title: TeamStatusFilter
      description: Filter for team listings by active status.
    TeamResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Team ID
        name:
          type: string
          title: Name
          description: Team name
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
          description: ID of the workspace the team belongs to
        root_directory_id:
          type: string
          format: uuid
          title: Root Directory Id
          description: >-
            The team's top-level directory. Use it as `parent_id` to list the
            team's contents.
        trash_directory_id:
          type: string
          format: uuid
          title: Trash Directory Id
          description: Trash directory ID - deleted assets are moved here
        default_role:
          $ref: '#/components/schemas/TeamRole'
          description: 'Deprecated: always `no_access`.'
          deprecated: true
        is_active:
          type: boolean
          title: Is Active
          description: >-
            Whether the team is active. Inactive teams are hidden from listing
            and discovery surfaces.
        num_assets:
          type: integer
          title: Num Assets
          description: Number of assets in team
        size_bytes:
          type: integer
          title: Size Bytes
          description: Total size of assets in bytes
        duration:
          type: number
          title: Duration
          description: Total duration in seconds
        created_by_user_id:
          type: string
          format: uuid
          title: Created By User Id
          description: ID of the user that created the team
        created:
          type: string
          format: date-time
          title: Created
          description: Creation timestamp
        updated:
          type: string
          format: date-time
          title: Updated
          description: Last update timestamp
      type: object
      required:
        - id
        - name
        - workspace_id
        - root_directory_id
        - trash_directory_id
        - default_role
        - is_active
        - num_assets
        - size_bytes
        - duration
        - created_by_user_id
        - created
        - updated
      title: TeamResponse
      description: API response schema for a team
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TeamRole:
      type: string
      enum:
        - full_access
        - editor
        - commenter
        - downloader
        - viewer
        - no_access
      title: TeamRole
      description: Role on a team.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.