Templates

List templates

GET/templates

The account's transactional templates (designed in the app under Templates → Transactional; marketing templates are not listed), newest first, each with the variable names its subject and body use. Send one with POST /api/v1/emails: template_id plus variables.

Permission: templates:read · on the API key screen: Templates → Read access · All permissions

Query parameters

  • limitnumber

    Page size, 1 to 50 (default 20).

    From 1 to 50.

  • cursorstring

    next_cursor of the previous page.

    At most 400 characters.

Response

  • objectstring

    One of: list

    At most 2,000 characters.

  • dataobject[]

    At most 50 items.

    Show properties
    • 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.

  • has_moreboolean
  • next_cursorstring | null

    At most 400 characters.