Retrieve a template version
GET/v1/templates/{id}/versions/{version}
Requires an API key with the templates:read scope. About keys and scopes
Works with integration, agent and partner keys.
Returns one published version of a template with its full content and transactionalDefaults, and the shared blocks and brand kit it was published with, to view or compare: two versions with the same blocks can still send different footers.
Path parameters
idstringrequiredThe template's id.
uuid
versionintegerrequiredThe version number, from 1, as
listTemplateVersionslists them.min > 0 · max 2147483647
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
Returns
Returns 200 OK with a TemplateVersion in data. Otherwise returns an error; Errors lists every code and which to retry.
One of 2 shapes:
- DesignTemplateVersion
13 child attributes
versionintegerrequiredThe version number, from 1.
min > 0
publishedByUserIdstring | nullrequiredWho published it;
nullwhen published through an API key, or by a member since removed.uuid
publishedAtstringrequiredWhen this version was published.
date-time
plainTextOverridestring | nullrequiredPlain text sent instead of the version generated from the design or HTML.
transactionalDefaultsTransactionalDefaultsrequiredWhat a transactional send of the template uses unless the send gives its own;
nullleaves it to the send. Campaigns and journeys set their own.4 child attributes
subjectstring | nullrequiredThe subject line; may hold merge tags.
previewTextstring | nullrequiredThe inbox preview text after the subject; may hold merge tags.
fromstring | nullrequiredThe sender: one address, optionally with a display name.
replyTostring | nullrequiredThe address replies go to.
email
translationsmap<string, object> | nullrequiredat most 30 keys
3 child attributes
subjectstringoptional1–998 characters
previewTextstringoptional1–255 characters
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
One of 2 shapes
- DesignSnapshot
6 child attributes
kind"design"optionaldesign: built from blocks. Left out,design.schemaVersionintegerrequiredThe block format version; use the current one, 1.
min > 0 · max 1000
blocksobject[]requiredThe blocks, rendered top to bottom: at most 200 across the whole tree and five levels including the root. The footer stays at the root.
at least 1 item · at most 200 items
themeEmailThemerequiredTheme values this email overrides.
languagestringoptionalThe language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML
langand the reading direction: Arabic, Hebrew, Persian, Urdu and other right-to-left languages render right to left. Defaults to "en".up to 35 characters
plainTextOverridestring | nulloptionalPlain text sent instead of the version generated from the blocks.
up to 100,000 characters
- HtmlSnapshot
3 child attributes
kind"html"requiredhtml: the whole email written as HTML.htmlstringrequiredThe whole email as HTML. Merge tags work as in a design;
{{unsubscribe_url}}as a link's href places the unsubscribe link, which marketing sends otherwise get below the email, with the workspace postal address when the email does not show it.up to 512,000 characters
plainTextOverridestring | nulloptionalPlain text sent instead of the version generated from the HTML.
up to 100,000 characters
kind"design"requiredBuilt from blocks in the designer.
schemaVersionintegerrequiredThe block format version.
min > 0 · max 1000
blocksobject[]requiredThe blocks, rendered top to bottom: at most 200 across the whole tree and five levels including the root. The footer stays at the root.
at least 1 item · at most 200 items
One of 23 shapes
- HeaderBlock
11 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"header"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsrcstringoptionalThe logo image's URL; without one, the brand kit's logo.
up to 2,048 characters
altstringoptionalThe logo's alt text. Without
srcor a brand kit logo, it shows as a wordmark in the heading font; gallery samples set it to{{ org.name }}.up to 100,000 characters
widthstringoptionalA share of the row ("100%", "66%", "50%"), or a fixed width from "16px" to "600px", such as "120px" for a logo. Never wider than the row.
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,righthrefstringoptionalWhere it links: an
https:,http:,mailto:ortel:address, or a merge tag.https://is added to a bare address such asacme.com/setup. A draft may hold anything; a button or video whose link is none of these cannot be published or sent.up to 2,048 characters
- HeadingBlock
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"heading"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
sizestringoptionalone of
28px,22px,18pxalignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,rightweightstringoptionalone of
regular,bold
- TextBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"text"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,right
- ImageBlock
11 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"image"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsrcstringoptionalup to 2,048 characters
altstringoptionalup to 100,000 characters
widthstringoptionalA share of the row ("100%", "66%", "50%"), or a fixed width from "16px" to "600px", such as "120px" for a logo. Never wider than the row.
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,righthrefstringoptionalWhere it links: an
https:,http:,mailto:ortel:address, or a merge tag.https://is added to a bare address such asacme.com/setup. A draft may hold anything; a button or video whose link is none of these cannot be published or sent.up to 2,048 characters
- ButtonBlock
12 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"button"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
hrefstringoptionalWhere it links: an
https:,http:,mailto:ortel:address, or a merge tag.https://is added to a bare address such asacme.com/setup. A draft may hold anything; a button or video whose link is none of these cannot be published or sent.up to 2,048 characters
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,rightfullWidthbooleanoptionalcolorstringoptionalA hex colour, or a theme reference:
accent,canvas, oraccent-tint/canvas-tint(a light tint of it), which follows the theme.buttonStylestringoptionalThis button's style, in place of the theme's.
one of
solid,outline
- DividerBlock
11 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"divider"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopthicknessintegeroptionalLine weight in px.
min 1 · max 10
colorstringoptionalA hex colour, or a theme reference:
accent,canvas, oraccent-tint/canvas-tint(a light tint of it), which follows the theme.lineStylestringoptionalone of
solid,dashed,dottedwidthstringoptionalHow much of the row the line spans.
one of
100%,75%,50%,25%alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,right
- SpacerBlock
7 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"spacer"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsizestringoptionalThe height, from "4px" to "200px".
pattern
^\d{1,3}px$
- ColumnsBlock
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"columns"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopwidthsinteger[]optionalEach column's share of the row in percent, left to right, one per column and adding up to 100, such as [33, 67]. Omit for equal columns.
at least 2 items · at most 2 items
valignstringoptionalWhere shorter columns sit against the tallest one.
one of
top,middle,bottomstackOnMobilebooleanoptionalFalse keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.
columnsobject[][]requiredThe child blocks of each column, left to right: exactly 2 arrays.
at least 2 items · at most 2 items
- Columns3Block
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"columns3"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopwidthsinteger[]optionalEach column's share of the row in percent, left to right, one per column and adding up to 100, such as [33, 67]. Omit for equal columns.
at least 3 items · at most 3 items
valignstringoptionalWhere shorter columns sit against the tallest one.
one of
top,middle,bottomstackOnMobilebooleanoptionalFalse keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.
columnsobject[][]requiredThe child blocks of each column, left to right: exactly 3 arrays.
at least 3 items · at most 3 items
- ImageTextBlock
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"imagetext"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsrcstringoptionalup to 2,048 characters
altstringoptionalup to 100,000 characters
textstringoptionalup to 100,000 characters
sidestringoptionalWhich side the image sits on; unset, the start of the reading direction (left, or right in a right-to-left language).
one of
left,right
- ImageGroupBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"imagegroup"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopcount2 | 3optionalimagesobject[]optionalat most 3 items
2 child attributes
srcstringoptionalup to 2,048 characters
altstringoptionalup to 100,000 characters
- BoxedBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"boxed"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,right
- QuoteBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"quote"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
text2stringoptionalup to 100,000 characters
- ListBlock
7 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"list"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
- ProductBlock
13 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"product"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopweightstringoptionalThe name and price in bold (the default) or regular weight.
one of
regular,boldtextstringoptionalup to 100,000 characters
text2stringoptionalup to 100,000 characters
descstringoptionalup to 100,000 characters
hrefstringoptionalWhere it links: an
https:,http:,mailto:ortel:address, or a merge tag.https://is added to a bare address such asacme.com/setup. A draft may hold anything; a button or video whose link is none of these cannot be published or sent.up to 2,048 characters
srcstringoptionalup to 2,048 characters
altstringoptionalup to 100,000 characters
- VideoBlock
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"video"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsrcstringoptionalup to 2,048 characters
altstringoptionalup to 100,000 characters
textstringoptionalup to 100,000 characters
hrefstringoptionalWhere it links: an
https:,http:,mailto:ortel:address, or a merge tag.https://is added to a bare address such asacme.com/setup. A draft may hold anything; a button or video whose link is none of these cannot be published or sent.up to 2,048 characters
- SocialBlock
10 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"social"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopalignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,rightlinksobject[]optionalThe profiles to show; without any, the brand kit's social links.
at most 10 items
2 child attributes
labelstringrequired1–80 characters
hrefstringrequireduri · pattern
^[^\s{}]*$· up to 2,048 characters
displaystringoptionalEach link as its network's icon (the default), the icon and its label, or the label alone. The network is read from the link's address; any other address shows a globe.
one of
icons,both,texticonStylestringoptionalIcons in each network's colour (the default), near-black, or white for a dark background.
one of
color,dark,light
- MenuBlock
9 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"menu"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoplinksobject[]optionalThe entries, left to right: at most 8 { label, href }.
at most 8 items
2 child attributes
labelstringrequired1–80 characters
hrefstringrequireduri · pattern
^[^\s{}]*$· up to 2,048 characters
alignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,rightseparatorstringoptionalWhat stands between entries: space only, a bar or a dot.
one of
none,bar,dot
- HtmlBlock
7 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"html"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktoptextstringoptionalup to 100,000 characters
- SectionBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"section"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopbackgroundImagestringoptionalA photo behind the section's blocks, covering the box. Needs
style.backgroundColor, which Outlook for Windows and clients with images off show instead, and which text is made readable on.pattern
^https:\/\/[^\s"'()<>\\{}]+$· up to 2,048 charactersblocksobject[]requiredThe section's child blocks, drawn inside its box.
at least 1 item · at most 200 items
- FooterBlock
8 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"footer"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
textstringoptionalup to 100,000 characters
lockedtrueoptionalalignstringoptionalWhen unset, headings, text, buttons and boxed text start from the reading side (left, or right in a right-to-left language); other blocks centre.
one of
left,center,rightunsubscribeLinkbooleanoptionalFalse leaves out the unsubscribe link, for a transactional email (a receipt, a sign-in code). A marketing send adds the sender's own link anyway.
unsubscribeLabelstringoptionalThe words of the unsubscribe link, "Unsubscribe" by default. The link opens a page that also manages topic preferences, so "Unsubscribe or manage preferences" is accurate.
up to 80 characters
- RepeatBlock
9 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"repeat"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfobjectoptionalShow the block only to contacts these segment rules match, checked as each message is rendered. Omit to show it to everyone.
Any of 2 shapes
- Match all
- Match any
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopliststringrequiredThe list to repeat over:
event.properties.<name>(a journey's event, or a transactional send'sdata) orcontact.attributes.<name>.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$limitintegeroptionalmin 1 · max 100
blocksobject[]requiredThe blocks written out once per item of
list, where{{ item.<field> }}reads that item. Repeats do not nest.at least 1 item · at most 200 items
- SharedBlockReference
7 child attributes
idstringrequiredIdentifies the block within the template; unique among its blocks.
1–128 characters
type"shared"requiredstyleEmailBlockStyleoptionalVisual overrides for this block, such as colours, font and spacing.
19 child attributes
backgroundColorstringoptionalFill behind the block.
fontFamilystringoptionalA font id: one every client has (arial, verdana, georgia, tahoma, times-new-roman, courier-new), or a web font, which shows where the client loads it and falls back to a safe font elsewhere. Form themes use the same ids.
one of
arial,verdana,georgia,tahoma,times-new-roman,courier-new,inter,roboto,open-sans,lato,montserrat,poppins,dm-sans,nunito,work-sans,oswald,ubuntu,mulish,manrope,quicksand,rubik,josefin-sans,epilogue,noto-sans,space-grotesk,plus-jakarta-sans,outfit,bricolage-grotesque,sora,ibm-plex-sans,geist,space-mono,playfair-display,merriweather,lora,libre-baskerville,eb-garamond,fraunces,source-serif-4,cormorant-garamondfontSizeintegeroptionalText size in px, 12 to 72.
min 12 · max 72
mobileFontSizeintegeroptionalText size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use
fontSize.min 12 · max 72
paddingobjectoptionalSpace inside the block in px, 0 to 100 per side; omitted sides keep their default.
mobilePaddingobjectoptionalSpace inside the block in px on phones (screens up to 620px), 0 to 100 per side; omitted sides keep the block's
padding(or its default). Email apps that ignore mobile styles usepadding.borderWidthintegeroptionalBorder thickness in px; 0 for none.
min 0 · max 10
borderStylestringoptionalBorder line style.
one of
solid,dashed,dottedborderColorstringoptionalBorder colour.
borderRadiusintegeroptionalCorner rounding in px, 0 to 100.
min 0 · max 100
textColorstringoptionalText colour.
linkColorstringoptionalColour of links in the text.
linkUnderlinebooleanoptionalSet to false for links without an underline, such as a row of rating numbers or stars.
letterSpacingnumberoptionalSpace between letters in px, such as 3 for a spaced-out eyebrow line.
min -2 · max 20
textTransformstringoptionalSet to
uppercaseto capitalise all text.one of
none,uppercaselineHeightnumberoptionalA multiple of the font size.
min 1 · max 3
fontWeightstringoptionalText weight.
one of
regular,boldfontStylestringoptionalText style.
one of
normal,italicinsetbooleanoptionalDraw the background and border as a box within the content width, not across the whole row.
visibleIfPresentstringoptionalShow the block only when this value is present (not missing, empty or false), such as
data.vatfor a VAT row; checked as each message is rendered.pattern
^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$showOnstringoptionalShow the block only on phones (screens up to 620px) or only on wider screens. Clients that ignore screen size show the desktop version, and so does plain text. Omit to show it everywhere.
one of
mobile,desktopsharedBlockIdstringrequiredThe workspace's shared block placed here, by reference.
uuid
overrideobject[]optionalEdited here only: these blocks render instead of the shared content. Omit to follow the shared block.
at least 1 item · at most 200 items
themeEmailThemerequiredTheme values this email overrides.
14 child attributes
bodyFontFamilystringoptionalBody font stack, such as
Inter, sans-serif.pattern
^[\w\s,'"-]+$· up to 200 charactersheadingFontFamilystringoptionalHeading font stack.
pattern
^[\w\s,'"-]+$· up to 200 characterscardBackgroundColorstringoptionalBackground of the email card, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$canvasBackgroundColorstringoptionalBackground behind the card, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$textColorstringoptionalDefault text colour, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$accentColorstringoptionalBrand colour for buttons and highlights, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$linkColorstringoptionalLink colour, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$headingColorstringoptionalHeading colour, as hex; unset, headings take
textColor.pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$buttonTextColorstringoptionalLabel colour of solid buttons in
accentColor, as hex; unset, white or near-black, whichever reads on it.pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$baseFontSizestringoptionalBody text size; headings and buttons scale with it. Unset is
16px.one of
14px,15px,16px,17px,18pxcardWidthstringoptionalWidth of the email card on wide screens.
one of
560px,600px,680pxcardBorderRadiusstringoptionalCorner rounding of the email's card.
one of
0px,6px,12px,16px,24px,999pxbuttonBorderRadiusstringoptionalButton corners;
cardBorderRadiusrounds the email's card and, when this is unset, buttons.one of
0px,6px,12px,16px,24px,999pxbuttonStylestringoptionalButton style.
one of
solid,outline
languagestringrequiredThe language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML
langand the reading direction: Arabic, Hebrew, Persian, Urdu and other right-to-left languages render right to left. Defaults to "en".sharedBlocksmap<string, object[]>requiredThe content of each shared block this version places, by shared block id, as it stood when published: what sends of this version show.
brandKitobjectrequiredThe workspace brand kit as it stood when published, under this version's
theme: the look, logo and social links sends of this version are drawn with.4 child attributes
namestring | nullrequiredthemeEmailThemerequired14 child attributes
bodyFontFamilystringoptionalBody font stack, such as
Inter, sans-serif.pattern
^[\w\s,'"-]+$· up to 200 charactersheadingFontFamilystringoptionalHeading font stack.
pattern
^[\w\s,'"-]+$· up to 200 characterscardBackgroundColorstringoptionalBackground of the email card, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$canvasBackgroundColorstringoptionalBackground behind the card, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$textColorstringoptionalDefault text colour, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$accentColorstringoptionalBrand colour for buttons and highlights, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$linkColorstringoptionalLink colour, as hex.
pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$headingColorstringoptionalHeading colour, as hex; unset, headings take
textColor.pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$buttonTextColorstringoptionalLabel colour of solid buttons in
accentColor, as hex; unset, white or near-black, whichever reads on it.pattern
^#(?:[0-9a-f]{3}|[0-9a-f]{6})$baseFontSizestringoptionalBody text size; headings and buttons scale with it. Unset is
16px.one of
14px,15px,16px,17px,18pxcardWidthstringoptionalWidth of the email card on wide screens.
one of
560px,600px,680pxcardBorderRadiusstringoptionalCorner rounding of the email's card.
one of
0px,6px,12px,16px,24px,999pxbuttonBorderRadiusstringoptionalButton corners;
cardBorderRadiusrounds the email's card and, when this is unset, buttons.one of
0px,6px,12px,16px,24px,999pxbuttonStylestringoptionalButton style.
one of
solid,outline
logoobject | nullrequired4 child attributes
assetIdstringrequireduuid
urlstringrequiredaltstring | nullrequiredwidthstring | nullrequired
socialLinksobject[]requiredat most 10 items
2 child attributes
labelstringrequired1–80 characters
hrefstringrequireduri · pattern
^[^\s{}]*$· up to 2,048 characters
- HtmlTemplateVersion
8 child attributes
versionintegerrequiredThe version number, from 1.
min > 0
publishedByUserIdstring | nullrequiredWho published it;
nullwhen published through an API key, or by a member since removed.uuid
publishedAtstringrequiredWhen this version was published.
date-time
plainTextOverridestring | nullrequiredPlain text sent instead of the version generated from the design or HTML.
transactionalDefaultsTransactionalDefaultsrequiredWhat a transactional send of the template uses unless the send gives its own;
nullleaves it to the send. Campaigns and journeys set their own.4 child attributes
subjectstring | nullrequiredThe subject line; may hold merge tags.
previewTextstring | nullrequiredThe inbox preview text after the subject; may hold merge tags.
fromstring | nullrequiredThe sender: one address, optionally with a display name.
replyTostring | nullrequiredThe address replies go to.
email
translationsmap<string, object> | nullrequiredat most 30 keys
3 child attributes
subjectstringoptional1–998 characters
previewTextstringoptional1–255 characters
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
One of 2 shapes
- DesignSnapshot
6 child attributes
kind"design"optionaldesign: built from blocks. Left out,design.schemaVersionintegerrequiredThe block format version; use the current one, 1.
min > 0 · max 1000
blocksobject[]requiredThe blocks, rendered top to bottom: at most 200 across the whole tree and five levels including the root. The footer stays at the root.
at least 1 item · at most 200 items
themeEmailThemerequiredTheme values this email overrides.
languagestringoptionalThe language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML
langand the reading direction: Arabic, Hebrew, Persian, Urdu and other right-to-left languages render right to left. Defaults to "en".up to 35 characters
plainTextOverridestring | nulloptionalPlain text sent instead of the version generated from the blocks.
up to 100,000 characters
- HtmlSnapshot
3 child attributes
kind"html"requiredhtml: the whole email written as HTML.htmlstringrequiredThe whole email as HTML. Merge tags work as in a design;
{{unsubscribe_url}}as a link's href places the unsubscribe link, which marketing sends otherwise get below the email, with the workspace postal address when the email does not show it.up to 512,000 characters
plainTextOverridestring | nulloptionalPlain text sent instead of the version generated from the HTML.
up to 100,000 characters
kind"html"requiredThe whole email written as HTML, kept as code.
htmlstringrequiredThe whole email, scripts and the like removed when it was saved.