---
title: "List all avatar templates, optionally filtered by niche."
method: GET
path: "/api/v1/preview/avatar-templates"
tags: ["Preview"]
---

# List all avatar templates, optionally filtered by niche.

`GET /api/v1/preview/avatar-templates`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/preview/avatar-templates`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Query parameters

- `niche` string

## Response `200`

OK

- AvatarTemplatesResponse
  - `counts` object, required
  - `niches` string[], required
  - `templates` AvatarTemplateItem[], required
    - `age_range` string
    - `content_niche` string
    - `description_text` string, nullable
    - `gender` string
    - `id` integer, required
    - `image_prompt` string
    - `name` string, required
    - `niche` string, required
    - `origin` string
    - `preview_image_key` string
    - `reference_image_urls` string[]
    - `slug` string
    - `speaking_style` string
    - `story` string
    - `suggested_forbidden_topics` string
    - `suggested_signature_phrases` string
    - `target_audience` string

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
