Skip to main content
GET
Get Message Template
The body is HTML as stored, with {{variables}} left raw: keep them as they are when reusing the template in a step.
A deleted template, another workspace’s template and a campaign step body all answer 404 EMAIL_TEMPLATE_NOT_FOUND: only the team library is readable here.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

templateId
string
required

The unique identifier of the message template, from GET /message-templates

Response

The message template

A library message template: a whole reusable message a user saved from the Templates page or an editor, usable as a step on any channel. Bodies are HTML as stored, with {{variables}} left raw.

_id
string

Template identifier (etp_)

name
string

Name shown on the Templates page

subject
string

Subject line; "" when none was set

message
string

HTML body, variables left as {{variable}}

cc
string[]

CC addresses; [] when none was set

tags
string[]

Tags, trimmed and lowercased; [] when none was set

createdBy
string

Creator user id (usr_), see GET /team/members

createdAt
string<date-time>

Creation date