Upload or replace a Word template's body
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from Settings → API Keys.
In: header
Path Parameters
id*string
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": 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. The `X-Docx-Version` header carries the stored version.
List a template's assets GET
The images and fonts this template owns, each with a signed URL valid for one hour.