Templates
List template versions
Every saved version of a stored template, newest first.
GET
/v1/templates/{name}/versionsAPI keyA stored template keeps every version it has had. Version 1 is the content from create; each update or restore adds the next number. Nothing is ever removed from the history until the template is deleted.
The list is returned in one response, newest version first, not paginated. Built-in templates have no versions and return 404 template_not_found.
Path parameters
The template name.
Response
dataTemplateVersion[]
The versions. The Node.js client returns this array directly.
Show version propertiesHide version properties
templateIdstring
The template ID, tmpl_….
versionnumber
The version number, starting at 1.
subjectstring
The subject in this version.
htmlstring
The HTML in this version.
textstring | null
The text body in this version.
variablesVariable[]
The declared variables in this version.
createdAtstring
When this version was saved.
Errors
| Status | Code | When |
|---|---|---|
| 404 | template_not_found | No stored template with this name. |