---
title: "Get generation"
method: GET
path: "/generations/{generation_id}"
tags: ["generations"]
---

# Get generation

`GET /generations/{generation_id}`

## Request

- Base URL: `https://www.socialfaktory.com/v1`
- URL: `https://www.socialfaktory.com/v1/generations/{generation_id}`
- Auth: HTTP bearer

Read one generation: where it is, the finished video, and the editor asset it produced. While it runs, stage is its current step, waiting_on names what holds it up and deadline_at is when it would be failed for that. A run waiting on the user will not move until the person acts, so ask them rather than poll.

## Path parameters

- `generation_id` string, required

## Response `200`

Get generation

- object
  - `id` string, required
  - `workflow_type` string, required
  - `status` string, required
  - `lifecycle` string, required
  - `stage` string, nullable
  - `waiting_on` object, nullable
    - `reason` 'provider' | 'media' | 'user' | 'blocked' | 'unknown', required
    - `key` string, nullable, required
  - `deadline_at` string, nullable
  - `script` string, nullable
  - `video_url` string, nullable
  - `cover_image_url` string, nullable
  - `error_code` string, nullable
  - `error_message` string, nullable
  - `credit_cost` integer
  - `width` integer, nullable
  - `height` integer, nullable
  - `editor_asset` object, nullable
  - `created_at` string, required

## Other responses

- `default`: The error envelope

---

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