---
title: "Create Template from Document"
method: POST
path: "/document_generation/template-create-from-document"
tags: ["Document AI — DMS"]
---

# Create Template from Document

`POST /document_generation/template-create-from-document`

## Request

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

Turn a Word, OpenDocument, RTF, HTML or text document that is already stored in the DMS into an editable template (version 1). Letterhead images are embedded, header and footer are kept separately, and existing {{placeholders}} in the...

## 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

- `201`: Created
- `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)
