---
title: "One template with its field sheet and proposal state"
method: GET
path: "/v1/doc-gen/templates/{id}"
tags: ["Document Generation"]
---

# One template with its field sheet and proposal state

`GET /v1/doc-gen/templates/{id}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/doc-gen/templates/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Response `200`

The template with its fields and the state of its latest proposal (`null` when none ran).

- DocGenTemplateWithProposal
  - [`DocGenTemplate`](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e/schema?at=%2Fcomponents%2Fschemas%2FDocGenTemplate)
  - object
    - `proposal` DocGenProposalState, nullable
      - `status` 'running' | 'done' | 'failed'
      - `runId` string: Identifies one run; absent on proposals stored before runs had an identity.
      - `productId` string, uuid
      - `force` boolean
      - `only` string[]: The field keys this run proposes when it only asks again for fields an earlier run left without an answer.
      - `startedAt` string, date-time
      - `finishedAt` string, date-time, nullable
      - `error` string, nullable
      - `summary` DocGenProposalSummary, nullable
        - `fields` integer
        - `proposed` integer
        - `kept` integer
        - `fromData` integer
        - `derived` integer
        - `entered` integer
        - `profile` integer
        - `model` string
        - `parts` object[]: One entry per model call.
          - `fields` integer
          - `answered` boolean
          - `note` string
        - `pending` string[]: Keys of the fields no answer came back for; the next proposal for the same product asks for them again.

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/doc-gen/templates/:id/get.md)

---

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