---
title: "Returns the status of an AI subtitle generation"
method: GET
path: "/dam/files/{file_id}/subtitle-generations/{generation_id}"
tags: ["DAM: Files"]
---

# Returns the status of an AI subtitle generation

`GET /dam/files/{file_id}/subtitle-generations/{generation_id}`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/files/{file_id}/subtitle-generations/{generation_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/files/:file_id/subtitle-generations/:generation_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Reports a subtitle generation. While it is queued or processing the answer is 200 with a Retry-After header in seconds. Once completed the answer is 303 See Other with a Location header pointing to the file's subtitle tracks, and the generation in the body. A generation that ended without adding every track answers 200 with the reason in status. Generations are kept for a month; an older one answers 404.

## Path parameters

- `file_id` string, required
- `generation_id` string, required

## Response `200`

Generation still running, or ended without adding every track

- SubtitleGenerationResponse
  - `data` SubtitleGeneration
    - `id` string
    - `type` string
    - `attributes` object
      - `status` 'queued' | 'processing' | 'completed' | 'translation_failed' | 'no_audio_track' | 'no_speech' | 'source_missing' | 'failed': queued and processing are still running. completed means every track was added. translation_failed means the spoken-language track was added but none of the translated tracks. no_audio_track, no_speech, source_missing and failed are final and added no tracks.
      - `languages` string[]
      - `created_at` string
      - `updated_at` string
    - `links` object
      - `self` string

## Other responses

- `303`: Generation completed
- `401`: Unauthorized
- `403`: Forbidden
- `404`: File or generation not found

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
