> ## 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 Collections In Team

> List all collections in a team



## OpenAPI

````yaml /api-reference/openapi.json get /collections
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:
  /collections:
    get:
      tags:
        - Collections
      summary: List Collections In Team
      description: List all collections in a team
      operationId: list_collections_in_team
      parameters:
        - name: team_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
            description: Team ID
          description: Team ID
        - name: parent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: Directory ID; lists only the collections directly in it
            title: Parent Id
          description: Directory ID; lists only the collections directly in it
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CollectionResponse'
                title: Response List Collections In Team Collections Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CollectionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Collection ID
        name:
          type: string
          title: Name
          description: Collection name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Collection description
        created_by_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By User Id
          description: User who created this collection
        num_assets:
          type: integer
          title: Num Assets
          description: Number of assets in the collection
          default: 0
        num_directories:
          type: integer
          title: Num Directories
          description: Number of directories in the collection
          default: 0
        team_id:
          type: string
          format: uuid
          title: Team Id
          description: Team ID
        parent_id:
          type: string
          format: uuid
          title: Parent Id
          description: ID of the directory the collection is in
        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
        - team_id
        - parent_id
        - created
        - updated
      title: CollectionResponse
      description: API response schema for creating a collection
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.