# List avatars

`GET https://api.cream-ai.de/api/v1/avatars`

Characters that can appear as an avatar in a film (`settings.avatar` in `POST /films`). Only characters, no own photos.

**Voice:** a character with its own `voice` narrates the whole film it appears in, before `settings.voice_id` and the brand voice. Such a film needs no `settings.voice_id`.

**With `brand_id`:** the characters of the brand kit of this brand; `default` marks the default avatar of the brand. Use this list when the film has a brand (from `settings.brand_id`, the template or the previous version): `POST /films` only accepts characters of that brand.

**Without `brand_id`:** all characters of the company (as in the character library in mint). Use this list for films without a brand.

Sorted by `name`. Changes made in mint may take up to 30 seconds to appear.

Scopes: `catalog:read`

## Parameters

- `limit` (query): Page size (1–100).
- `cursor` (query): Opaque cursor from next_cursor of the previous page.
- `brand_id` (query): Only the characters of the brand kit of this brand (id from GET /brands). An unknown brand returns 404 not_found.

## Returns

- 200: One page of the list.

## Errors

- 400: Invalid request (invalid_request, invalid_json, invalid_cursor, idempotency_key_required, invalid_idempotency_key, parent_not_found, max_depth_exceeded, narration_too_long, user_not_in_company, user_role_not_allowed, template_not_found, category_not_found, voice_required, media_name_unknown, document_unreadable, avatar_not_found, upload_type_not_allowed, feedback_kind_unsupported, upload_not_found).
- 401: Missing, malformed, revoked or expired API key (unauthorized).
- 403: Not allowed (forbidden_scope, ip_not_allowed, company_inactive, user_email_not_allowed, ai_music_not_confirmed, api_not_enabled).
- 404: Not found (not_found).
- 429: Too many requests (rate_limited).
- 500: Internal error (internal). Quote the request id when you contact support.
- 503: Temporarily unavailable (service_unavailable). Retry later (after Retry-After seconds, if sent).

## Example request

```sh
curl "https://api.cream-ai.de/api/v1/avatars" \
  -H "Authorization: Bearer $MINT_API_KEY"
```

## Example response (200)

```json
{
  "object": "list",
  "data": [
    {
      "object": "avatar",
      "id": "chr_8f2k4m1q",
      "name": "Dr. Nora Lind",
      "description": "Lecturer for marketing, calm and friendly.",
      "brand_ids": [
        "brand-northwind-x7k2p9"
      ],
      "default": true,
      "preview_url": "/api/v1/avatars/chr_8f2k4m1q/preview",
      "voice": {
        "voice_id": "Nr4kL2pQs8VwXy1zT0aB",
        "name": "Nora (calm)"
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```
