---
title: "List Document Template Versions"
method: POST
path: "/document_generation/template-versions"
tags: ["Document AI — DMS"]
---

# List Document Template Versions

`POST /document_generation/template-versions`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/document_generation/template-versions`
- Auth: HTTP bearer

List all immutable versions of a document generation template (newest first) with engine, page layout, content hash and change note.

## Request body

- object
  - `template_id` string, required: Template ID.

## Response `200`

Success

- SuccessEnvelope: Success envelope. Payload fields are endpoint-specific (top-level fields, `result`/`job_result` for jobs, `data` on some account endpoints).
  - `status` 'success', required
  - `processing_time` union
    - string
    - number
  - `_billing` object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
