---
title: "Get Extract Template Generation"
method: GET
path: "/v2/extract/templates/generations/{generation_id}"
tags: ["Extract Templates API"]
---

# Get Extract Template Generation

`GET /v2/extract/templates/generations/{generation_id}`

## Path parameters

- `generation_id` string, uuid, required

## Response `200`

Successful Response

- ExtractTemplateGenerationResponsePublicV2
  - `completed_at` string, date-time, nullable — When the generation completed.
  - `created_at` string, date-time, nullable — When the generation was created.
  - `error` string, nullable — Error message when generation failed.
  - `generated_version` ExtractTemplateVersionResponsePublicV2
    - `created_at` string, date-time, required — When the version was created.
    - `id` string, uuid, required — Unique extract template version identifier.
    - `input_schema` object, required — JSON schema describing accepted input parameters.
    - `metadata` ExtractTemplateVersionMetadataPublicV2, required
      - `data_source` string, nullable — Data source associated with the version.
      - `description` string, nullable — Version description shown to users.
      - `display_name` string, nullable — Human-friendly version display name.
      - `domain` string, nullable — Domain associated with the version.
      - `entity_type` string, nullable — Entity type produced by the version.
      - `tags` string[] — Tags associated with the version.
      - `vertical` string, nullable — Business vertical associated with the version.
    - `name` string, required — Extract template name this version belongs to.
    - `output_schema` object, required — JSON schema describing extracted output.
    - `samples` ExtractTemplateSamplePublicV2[], nullable — Sample input and output pairs for the version.
      - `input` unknown
      - `output` unknown
    - `version_number` integer, required — Monotonic version number for the extract template.
  - `generated_version_id` string, uuid, nullable — Identifier of the generated version.
  - `id` string, uuid, required — Unique extract template generation identifier.
  - `name` string, nullable — Extract template name associated with the generation.
  - `source_version_id` string, uuid, nullable — Identifier of the version being refined.
  - `started_at` string, date-time, nullable — When the generation started executing.
  - `status` string, required — Current generation status.
  - `summary` string, nullable — Summary of the generation result.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/nimbleway/apis/nimble-sdk.md) · [All operations](https://skmtc.net/nimbleway/apis/nimble-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nimbleway/nimble-sdk/versions/725be79e7005/schema)
