Get a template
GET
/templates/{id}One transactional template (a marketing template is 404): its name, subject and the variable names it uses. Its HTML is not returned (edit it in the app).
Permission: templates:read · on the API key screen: Templates → Read access · All permissions
Path parameters
idstringrequiredThe id of the template.
Response
objectstringOne of:
templateAt most 2,000 characters.
idstringAt most 2,000 characters.
namestringAt most 255 characters.
subjectstringThe template's subject (it may contain tags, filled in with variables). Used when a send gives no subject.
At most 500 characters.
variablesstring[]The names the template's subject and body read ({{ name }}, {% for item in items %} …), sorted. A name you leave out of variables is filled in as empty.
At most 100 items.
created_atstringAt most 2,000 characters.