FlaresendDocs
Templates

List template versions

Every saved version of a stored template, newest first.

GET/v1/templates/{name}/versionsAPI key

A 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

namestringpathrequired

The template name.

Response

dataTemplateVersion[]

The versions. The Node.js client returns this array directly.

Show version properties

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

StatusCodeWhen
404template_not_foundNo stored template with this name.