---
title: "Download one generated document as Word or PDF"
method: GET
path: "/v1/doc-gen/jobs/{id}/documents/{doc}/file"
tags: ["Document Generation"]
---

# Download one generated document as Word or PDF

`GET /v1/doc-gen/jobs/{id}/documents/{doc}/file`

## Request

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

Returns the file as an attachment. Any `kind` other than `pdf` returns the Word file. The document must be one the key's minting user may read under Sources IAM.

## Path parameters

- `id` string, uuid, required
- `doc` string, uuid, required

## Query parameters

- `kind` 'docx' | 'pdf'

## Response `200`

The file.

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.
- `410`: The batch's files were not kept and the 24-hour download window has passed.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/doc-gen/jobs/:id/documents/:doc/file/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)
