Create message template

Creates a new message template for the authenticated account. References the sending domain and footer by UUID. Supply either html_content (visual-editor HTML) or raw_html_content (custom raw HTML with use_raw_html_content set to true). If from_email or reply_to_email are supplied, their domain must match the sending domain of the referenced EDS.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 2 and 255

Display name for the template.

uuid
required

Sending domain (EDS) UUID.

string
required
length between 2 and 255

Email subject line.

string | null

Optional preview text shown in inbox clients.

string | null

Standard visual-editor HTML body. Required unless raw_html_content is supplied. Supports merge tags and offer link variables, e.g. {{offer_link_4821}}, which resolve for a broadcast built from this template only when that offer is linked to the broadcast; when it is not, the variable resolves to an empty string, leaving an empty href rather than visible text.

string | null

Custom raw HTML body. Required when use_raw_html_content is true. Supports merge tags and offer link variables, e.g. {{offer_link_4821}}, which resolve for a broadcast built from this template only when that offer is linked to the broadcast; when it is not, the variable resolves to an empty string, leaving an empty href rather than visible text.

boolean

When true, raw_html_content is the body that sends.

boolean
string | null
string | null

Must match the sending domain of the referenced EDS.

string | null
string | null

Must match the sending domain of the referenced EDS.

Responses

401

Missing or invalid bearer token.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json