---
title: "Get Generation Job Status"
method: GET
path: "/generate/jobs/{job_id}"
tags: ["generate"]
---

# Get Generation Job Status

`GET /generate/jobs/{job_id}`

Get the current status of an async generation job.

Returns the current status and, when complete, the generated data.

Args:
    job_id: The job/dataset UUID to query.
    auth: Authenticated user context.

Returns:
    GenerateJobStatus with status and data when the job is 'ready'.

Raises:
    HTTPException: 400 if job_id is not a valid UUID.
    HTTPException: 404 if the job is not found or not owned by this user.

## Path parameters

- `job_id` string, required

## Response `200`

Successful Response

- GenerateJobStatus — Response from job status polling endpoint. Returns current status and, when complete, the generated data.
  - `job_id` string, required — Job ID (same as dataset_id)
  - `status` string, required — Job status: queued, generating, ready, failed
  - `data` object[], nullable — Generated data rows (only present when status is 'ready')
  - `count` integer, nullable — Number of generated rows (only present when status is 'ready')
  - `task_type` string, nullable — Generation task type: ner, classification, or custom
  - `token_usage` integer, nullable — Estimated tokens used (only present when status is 'ready')
  - `dataset` object, nullable — Dataset info (only present when status is 'ready')
  - `error` string, nullable — Error message (only present when status is 'failed')
  - `is_seed` boolean, nullable — Whether this is a seed dataset
  - `created_at` string, nullable — Job creation timestamp

## Other responses

- `422` — Validation Error

---

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