---
title: "Get a 'generate-chapters' job"
method: GET
path: "/robots/v0/jobs/generate-chapters/{JOB_ID}"
tags: ["Generate Chapters"]
---

# Get a 'generate-chapters' job

`GET /robots/v0/jobs/generate-chapters/{JOB_ID}`

Retrieves the current status and results of a 'generate-chapters' job. Jobs are automatically deleted after 30 days.

## Path parameters

- `JOB_ID` string, required

## Response `200`

Current status for the requested job

- GenerateChaptersJobResponse
  - `data` GenerateChaptersJob, required
    - `id` string, required — Unique job identifier.
    - `passthrough` string — Arbitrary string supplied at creation, returned as-is.
    - `units_consumed` integer, required — Number of Mux AI units consumed by this job.
    - `created_at` integer, required — Unix timestamp (seconds) when the job was created.
    - `updated_at` integer, required — Unix timestamp (seconds) when the job was last updated.
    - `workflow` 'generate-chapters', required
    - `parameters` GenerateChaptersJobParameters, required
      - `asset_id` string, required — The Mux asset ID of the video to generate chapters for.
      - `language_code` string — BCP 47 language code of the caption track to analyze (e.g. "en", "fr"). When omitted, the SDK prefers English if available.
      - `output_language_code` string — BCP 47 language code for the output chapter titles. Auto-detected from the transcript if omitted.
      - `prompt_overrides` object — Override specific sections of the chapter generation prompt.
        - `task` string — Override the core task instruction for chapter generation.
        - `output_format` string — Override the JSON output format instructions.
        - `chapter_guidelines` string — Override the chapter density and timing constraints.
        - `title_guidelines` string — Override the chapter title style requirements.
    - `status` 'pending' | 'processing' | 'completed' | 'errored' | 'cancelled', required — Current job status.
    - `outputs` GenerateChaptersJobOutputs — Workflow results. Present when status is 'completed'.
      - `chapters` object[], required — Generated chapters, ordered by start time.
        - `start_time` number, required — Chapter start time in seconds. The first chapter always starts at 0.
        - `title` string, required — Concise chapter title.
    - `errors` JobError[] — Error details. Present when status is 'errored'.
      - `type` string, required — Stable public error category identifier.
      - `message` string, required — Human-readable public error message.
      - `retryable` boolean — Whether retrying this job may resolve the error.
    - `resources` Resources — Related Mux resources linked to this job.
      - `assets` SlimlineAsset[], required — Mux assets associated with this job.
        - `id` string, required — Mux asset ID.
        - `meta` object — Mux asset metadata, if available.
          - `title` string — Asset title from Mux metadata.
          - `creator_id` string — Creator identifier from Mux metadata.
          - `external_id` string — External identifier from Mux metadata.
        - `passthrough` string — Passthrough string from the Mux asset.
        - `_links` object, required — Hypermedia links for the asset.
          - `self` object, required
            - `href` string, required — URL to the Mux asset resource.

## Other responses

- `403` — Robots is not enabled for this environment. Accept the Robots beta terms in the Mux Dashboard to enable access.
- `404` — No job exists for the supplied id
- `500` — Server error

---

[API](https://skmtc.net/muxinc/apis/mux-api.md) · [All operations](https://skmtc.net/muxinc/apis/mux-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/muxinc/mux-api/revisions/34a65dce0f31/schema)
