Restore a previous version
Authorization
ApiKeyAuth API key from Settings → API Keys.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/templates/string/versions" \ -H "Content-Type: application/json" \ -d '{ "restore": 0 }'{ "id": "cm4tpl8e20001js04xq2v9k3m", "version": 4, "restored_from": 2}A template's save history GET
Every saved state of a template, newest first. A version is cut on every save — an edit, a restore, or a new Word body — so this answers both "what did it look like before" and "which save broke it". Version numbers are what the restore call takes, and what a Dynamic URL pins to.
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.