Skip to main content
id
string
required

The ID of the email template

name
string
required

The name of the email template

subject
string
required

The subject of the email template

body
string | null
required

The body of the email template. If present, template_html and template_json must be null

kind
enum<string>
required

The kind of the email template

Available options:
plaintext,
html,
unlayer,
old_editor,
editor
template_html
string | null
required

The HTML of the email template. If present, body and template_json must be null

template_json
any | null
required

The JSON of the email template. If present, body and template_html must be null

new_template_json
any | null
required

The new unlayer JSON template. May be null

new_template_html
string | null
required

The new unlayer HTML template. May be null

attachments
object[]
required

An array of attachments associated with the email template

metadata
object
required

Arbitrary metadata associated with this email template

created_at
string
required

The time when the email template was created in ISO 8601 format

enabled_at
string | null
required

The time when the email template was enabled in ISO 8601 format