---
title: "Get document"
method: GET
path: "/documents/{documentID}"
tags: ["Guided Documents"]
---

# Get document

`GET /documents/{documentID}`

Returns a previously generated document by ID, including its rendered string output
and structured object.

## Response `200`

OK

- GuidedDocument — A generated document saved to the database.
  - `id` string, uuid, required
  - `name` string, required
  - `templateId` string, uuid, required — The template ID used for generation. For a plain `templateRef` with no overrides this is the referenced template. For other paths it is the newly saved auto-generated template aggregate.
  - `templateVersionId` string, uuid, required — The specific template version that was used for generation.
  - `language` string, required — The BCP 47 language tag of the generated output.
  - `interactionId` string, uuid, nullable — The interaction whose context was used to generate this document, if supplied.
  - `stringDocument` object, required — The generated document as a map of section key to rendered string output.
  - `structuredDocument` object, nullable — The generated document as a structured object keyed by section.
  - `labels` GuidedLabel[], required — Key/value labels attached to this document.
    - `key` string, required
    - `value` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/corti/apis/admin-api.md) · [All operations](https://skmtc.net/corti/apis/admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/corti/admin-api/versions/5d1895a1b3fc/schema)
