Templates

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

  • idstringrequired

    The id of the template.

Response

  • objectstring

    One of: template

    At most 2,000 characters.

  • idstring

    At most 2,000 characters.

  • namestring

    At most 255 characters.

  • subjectstring

    The 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_atstring

    At most 2,000 characters.