---
title: "Newest-first failed image generations with surface/model/text filters."
method: GET
path: "/api/v1/admin/generation-failures"
tags: ["AI Failures"]
---

# Newest-first failed image generations with surface/model/text filters.

`GET /api/v1/admin/generation-failures`

## 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/admin/generation-failures`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Query parameters

- `surface` string, nullable
- `model` string, nullable
- `q` string, nullable
- `page` integer
- `page_size` integer

## Response `200`

OK

- FailureListResponse: Paged failure listing plus the filter vocabularies.
  - `items` FailureItem[], required
    - `attempts` integer, required
    - `created_at` string, date-time, required
    - `error` string, required
    - `id` integer, required
    - `model` string, nullable
    - `operation_ref` string, nullable
    - `prompt_text` string, required
    - `surface` string, required
    - `user_id` integer, nullable
  - `models` string[], required
  - `page` integer, required
  - `page_size` integer, required
  - `surfaces` string[], required
  - `total` integer, required

## 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)
