---
title: "Retry an avatar video"
method: POST
path: "/v1/avatar-videos/{id}/retry"
tags: ["Avatar Videos"]
---

# Retry an avatar video

`POST /v1/avatar-videos/{id}/retry`

Creates a new job from the original immutable snapshot and links it through retryOf. Only terminal jobs can be retried.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string, required

## Response `202`

New retry job accepted.

- AvatarVideo
  - `id` string, required
  - `status` 'pending' | 'running' | 'finalizing' | 'completed' | 'failed' | 'cancelled', required
  - `completionReason` 'script_completed' | 'max_duration_reached' | 'cancelled' | 'null', nullable
  - `truncated` boolean, required
  - `durationSeconds` number, nullable
  - `effectiveMaxDurationSeconds` integer, required
  - `sessionId` string, nullable — Underlying normal EngineSession ID. Use its recording deletion endpoint for deletion.
  - `content` object, required
    - `available` boolean, required
    - `url` string, uri
    - `expiresAt` string, date-time
  - `failure` object, nullable
    - `code` string
    - `message` string
    - `retryable` boolean
  - `retryOf` string, nullable
  - `createdAt` string, date-time, required
  - `startedAt` string, date-time, nullable
  - `completedAt` string, date-time, nullable
  - `metadata` object, required

## Other responses

- `400` — Missing or invalid Idempotency-Key
- `401` — Missing or invalid API key
- `403` — API key lacks avatar-video write access
- `404` — Original avatar video not found
- `409` — Original is non-terminal or idempotency key conflicts
- `429` — Session duration unavailable or session/avatar-video concurrency exhausted
- `502` — Worker or session dispatch failed
- `503` — Avatar-video generation is disabled or the worker is unavailable

---

[API](https://skmtc.net/anam/apis/anam-ai-api.md) · [All operations](https://skmtc.net/anam/apis/anam-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anam/anam-ai-api/revisions/67afd1c5db59/schema)
