List templates
The project's stored templates, followed by the built-in templates they don't replace.
/v1/templatesAPI keyReturns every template you can send with in one response, not paginated:
- Templates stored in the project (
source: "db"), sorted by name. - Then the built-in templates (
source: "git"), except those a stored template with the same name replaces.
Built-in templates are read-only. In this list they have id: null, version: null, an empty subject and html: null. Retrieve one by name to see it rendered with example data.
Response
The templates. The Node.js client returns this array directly.
Show template propertiesHide template properties
tmpl_… for stored templates, null for built-in ones.
db for stored templates, git for built-in ones.
null for built-in templates.
The name to pass as template when sending.
The subject, unrendered. Empty for built-in templates in this list.
The HTML, unrendered. null for built-in templates in this list.
The text body, or null.
{ name, required, example } for each variable. For built-in templates, one entry per top-level data field, with required: false and the value from the template's example data.
The current version. null for built-in templates.
null for built-in templates.
null for built-in templates.