Upload or replace a Word template's body
Authorization
ApiKeyAuth API key from Settings → API Keys.
In: header
Path Parameters
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/templates/string/docx" \ -H "Content-Type: application/json" \ -d '{ "content_base64": "string" }'{ "id": "cm4tpl8e20001js04xq2v9k3m", "version": 7, "docx_version": 2, "fields": [ { "key": "name", "type": "text" }, { "key": "amount", "type": "text" } ], "added": [ "amount" ], "removed": [], "thumbnail_url": "https://files.automette.com/templates/cm4tpl8e20001js04xq2v9k3m/thumbnail.png?v=1756600000000", "preview_pdf_url": "https://docuagen.s3.amazonaws.com/..."}Download a Word template's body GET
The .docx file itself, so a Word template can be edited outside the dashboard: copy one from the library, download it here, edit it in Word, and PUT it back. Returns the bytes, not a signed URL. `X-Docx-Version` is the body's own counter, read off the file being served; when `?version=` was used, `X-Template-Version` carries the history number that was asked for. They are different numbers and drift apart whenever a template is saved without a new body. `?version=N` fetches a saved version's body rather than the current one, without restoring it.
List a template's assets GET
The images and fonts this template owns, each with a signed URL valid for one hour.