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

# List saved avatars



## OpenAPI

````yaml /api/openapi.json get /api/v1/teams/{teamId}/custom-avatars
openapi: 3.0.2
info:
  title: Melius API
  version: '1'
  description: >-
    The Melius REST API. Authenticate with an API key as a bearer token
    (`Authorization: Bearer mel_...`) and select the team to act on with the
    `x-team-id` header. Generations run through the same node + run pipeline as
    the app: create a node on a canvas, start a run, poll the run, then read the
    resulting version asset.
servers:
  - url: https://api.melius.com
security:
  - apiKey: []
    teamId: []
paths:
  /api/v1/teams/{teamId}/custom-avatars:
    get:
      tags:
        - customAvatar
      summary: List saved avatars
      operationId: customAvatar.list
      parameters:
        - in: path
          name: teamId
          schema:
            type: string
            format: uuid
          required: true
        - in: query
          name: includeVideoCounts
          schema:
            type: string
            enum:
              - 'true'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  avatars:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        description:
                          type: string
                        imageUrl:
                          type: string
                          nullable: true
                        imageAssetId:
                          type: string
                          format: uuid
                        previewUrl:
                          type: string
                          nullable: true
                        thumbnailUrl:
                          type: string
                          nullable: true
                        cardUrl:
                          type: string
                          nullable: true
                        sourcePrompt:
                          type: string
                        referenceAssetIds:
                          type: array
                          items:
                            type: string
                            format: uuid
                        referenceImageUrls:
                          type: array
                          items:
                            type: string
                            nullable: true
                        defaultVoice:
                          oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - stock
                                catalog:
                                  type: string
                                  enum:
                                    - elevenlabs
                                    - fish-audio
                                voiceId:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                              required:
                                - kind
                                - catalog
                                - voiceId
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - custom
                                customVoiceId:
                                  type: string
                                  format: uuid
                              required:
                                - kind
                                - customVoiceId
                        presetAvatarId:
                          type: string
                          nullable: true
                        isSelf:
                          type: boolean
                        earlierAssetIds:
                          type: array
                          items:
                            type: string
                            format: uuid
                        videoCount:
                          type: integer
                          minimum: 0
                        backgroundCount:
                          type: integer
                          minimum: 0
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                        createdByUserId:
                          type: string
                          nullable: true
                      required:
                        - id
                        - name
                        - description
                        - imageUrl
                        - imageAssetId
                        - sourcePrompt
                        - referenceAssetIds
                        - defaultVoice
                        - createdAt
                        - updatedAt
                        - createdByUserId
                  limit:
                    type: object
                    properties:
                      max:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                      atLimit:
                        type: boolean
                      message:
                        type: string
                    required:
                      - max
                      - atLimit
                      - message
                required:
                  - avatars
        '401':
          description: Missing, invalid, expired, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - statusCode
                  - message
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '429':
          description: Rate limit reached — retry after the `Retry-After` header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  retryAfterSeconds:
                    type: integer
                required:
                  - statusCode
                  - message
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'A Melius API key (`mel_...`), sent as `Authorization: Bearer <key>`.'
    teamId:
      type: apiKey
      in: header
      name: x-team-id
      description: The team (workspace) to act on. Defaults to the key's team when omitted.

````

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