Create an email templateMenu

Create an email template

POST/v1/templates

Requires an API key with the templates:write scope. About keys and scopes

Works with integration, agent and partner keys.

A repeat without a key does it again; send Idempotency-Key and a retry within 24 hours replays the first response. About idempotency

Creates a reusable email and publishes it as version 1, so a transactional send can use it at once by its id or alias. An agent key's template stays a draft until a person publishes it. So does a design with a button or video that has no working link, or a shared block linking to a placeholder address: it is saved with publishedVersion null, and publishing it answers what to fix.

transactionalDefaults holds the subject, preview text and sender that a transactional send of this template uses unless the send gives its own, so a subject change needs no deploy. Campaigns and journeys copy the design when they pick the template and set their own subject and sender; later edits to the template don't change them.

A template is one of two kinds, fixed when it is created. A design (the default) is built from blocks. An html template holds the whole email as html, kept as code: saving removes scripts, event handlers, frames, forms, SVG, javascript: links and stylesheet links other than Google Fonts (email apps drop them anyway), and keeps the rest as written, Outlook conditional comments included. CSS is not inlined. POST /v1/templates/render lists what saving would remove.

Each use checks what it needs: campaigns and journeys refuse raw HTML blocks in a design, and marketing email gets an unsubscribe link and the postal address added at send time unless the email already shows them; in HTML, {{unsubscribe_url}} as a link's href places the link.

With an alias, a retry after the first call succeeded is refused with 409 ALREADY_EXISTS: the first call created it. Without one, send an Idempotency-Key.

Header parameters

Kirora-Workspacestringoptional

Partner 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}$

Idempotency-Keystringoptional

Makes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with Idempotency-Replay: true. The same key with another request is 409 IDEMPOTENCY_KEY_REUSED; while the first is still running, 409 IDEMPOTENCY_KEY_IN_USE; after an unsafe first request failed or never returned, 409 IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.

8–255 characters

Request body

One of 2 shapes:

CreateDesignTemplateInput
11 child attributes
kind"design"optional

design: built from blocks in the designer. Left out, design.

schemaVersionintegeroptional

The block format version. Defaults to the current one.

min > 0 · max 1000 · default 1

blocksobject[]required

The 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
HeaderBlockInput
11 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"header"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

The logo image's URL; without one, the brand kit's logo.

up to 2,048 characters

altstringoptional

The logo's alt text. Without src or 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

widthstringoptional

A 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.

alignstringoptional

When 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

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

HeadingBlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"heading"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

sizestringoptional

one of 28px, 22px, 18px

alignstringoptional

When 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

weightstringoptional

one of regular, bold

TextBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"text"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

alignstringoptional

When 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

ImageBlockInput
11 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"image"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

widthstringoptional

A 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.

alignstringoptional

When 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

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

ButtonBlockInput
12 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"button"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

alignstringoptional

When 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

fullWidthbooleanoptional
colorstringoptional

A hex colour, or a theme reference: accent, canvas, or accent-tint / canvas-tint (a light tint of it), which follows the theme.

buttonStylestringoptional

This button's style, in place of the theme's.

one of solid, outline

DividerBlockInput
11 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"divider"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

thicknessintegeroptional

Line weight in px.

min 1 · max 10

colorstringoptional

A hex colour, or a theme reference: accent, canvas, or accent-tint / canvas-tint (a light tint of it), which follows the theme.

lineStylestringoptional

one of solid, dashed, dotted

widthstringoptional

How much of the row the line spans.

one of 100%, 75%, 50%, 25%

alignstringoptional

When 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

SpacerBlockInput
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"spacer"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

sizestringoptional

The height, from "4px" to "200px".

pattern ^\d{1,3}px$

ColumnsBlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"columns"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

widthsinteger[]optional

Each 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

valignstringoptional

Where shorter columns sit against the tallest one.

one of top, middle, bottom

stackOnMobilebooleanoptional

False keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.

columnsobject[][]required

The child blocks of each column, left to right: exactly 2 arrays.

at least 2 items · at most 2 items

Columns3BlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"columns3"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

widthsinteger[]optional

Each 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

valignstringoptional

Where shorter columns sit against the tallest one.

one of top, middle, bottom

stackOnMobilebooleanoptional

False keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.

columnsobject[][]required

The child blocks of each column, left to right: exactly 3 arrays.

at least 3 items · at most 3 items

ImageTextBlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"imagetext"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

textstringoptional

up to 100,000 characters

sidestringoptional

Which 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

ImageGroupBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"imagegroup"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

count2 | 3optional
imagesobject[]optional

at most 3 items

2 child attributes
srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

BoxedBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"boxed"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

alignstringoptional

When 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

QuoteBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"quote"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

text2stringoptional

up to 100,000 characters

ListBlockInput
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"list"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

ProductBlockInput
13 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"product"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

weightstringoptional

The name and price in bold (the default) or regular weight.

one of regular, bold

textstringoptional

up to 100,000 characters

text2stringoptional

up to 100,000 characters

descstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

VideoBlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"video"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

textstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

SocialBlockInput
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"social"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

alignstringoptional

When 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

linksobject[]optional

The profiles to show; without any, the brand kit's social links.

at most 10 items

2 child attributes
labelstringrequired

1–80 characters

hrefstringrequired

uri · pattern ^[^\s{}]*$ · up to 2,048 characters

displaystringoptional

Each 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, text

iconStylestringoptional

Icons in each network's colour (the default), near-black, or white for a dark background.

one of color, dark, light

MenuBlockInput
9 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"menu"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

linksobject[]optional

The entries, left to right: at most 8 { label, href }.

at most 8 items

2 child attributes
labelstringrequired

1–80 characters

hrefstringrequired

uri · pattern ^[^\s{}]*$ · up to 2,048 characters

alignstringoptional

When 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

separatorstringoptional

What stands between entries: space only, a bar or a dot.

one of none, bar, dot

HtmlBlockInput
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"html"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

SectionBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"section"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

backgroundImagestringoptional

A 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 characters

blocksobject[]required

The section's child blocks, drawn inside its box.

at least 1 item · at most 200 items

FooterBlockInput
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"footer"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

textstringoptional

up to 100,000 characters

lockedtrueoptional
alignstringoptional

When 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

unsubscribeLinkbooleanoptional

False 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.

unsubscribeLabelstringoptional

The 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

RepeatBlockInput
9 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"repeat"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

liststringrequired

The list to repeat over: event.properties.<name> (a journey's event, or a transactional send's data) or contact.attributes.<name>.

pattern ^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$

limitintegeroptional

min 1 · max 100

blocksobject[]required

The 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

SharedBlockReferenceInput
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"shared"required
styleEmailBlockStyleInputoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

sharedBlockIdstringrequired

The workspace's shared block placed here, by reference.

uuid

overrideobject[]optional

Edited here only: these blocks render instead of the shared content. Omit to follow the shared block.

at least 1 item · at most 200 items

themeEmailThemeInputoptional

Theme values this email overrides. Defaults to {}, which keeps the workspace brand kit.

14 child attributes
bodyFontFamilystringoptional

Body font stack, such as Inter, sans-serif.

pattern ^[\w\s,'"-]+$ · up to 200 characters

headingFontFamilystringoptional

Heading font stack.

pattern ^[\w\s,'"-]+$ · up to 200 characters

cardBackgroundColorstringoptional

Background of the email card, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

canvasBackgroundColorstringoptional

Background behind the card, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

textColorstringoptional

Default text colour, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

accentColorstringoptional

Brand colour for buttons and highlights, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

linkColorstringoptional

Link colour, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

headingColorstringoptional

Heading colour, as hex; unset, headings take textColor.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

buttonTextColorstringoptional

Label 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})$

baseFontSizestringoptional

Body text size; headings and buttons scale with it. Unset is 16px.

one of 14px, 15px, 16px, 17px, 18px

cardWidthstringoptional

Width of the email card on wide screens.

one of 560px, 600px, 680px

cardBorderRadiusstringoptional

Corner rounding of the email's card.

one of 0px, 6px, 12px, 16px, 24px, 999px

buttonBorderRadiusstringoptional

Button corners; cardBorderRadius rounds the email's card and, when this is unset, buttons.

one of 0px, 6px, 12px, 16px, 24px, 999px

buttonStylestringoptional

Button style.

one of solid, outline

languagestringoptional

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and the reading direction: Arabic, Hebrew, Persian, Urdu and other right-to-left languages render right to left. Defaults to "en".

up to 35 characters

namestringrequired

1–255 characters

plainTextOverridestring | nulloptional

Plain text sent instead of the version generated from the design or HTML; null clears it.

up to 100,000 characters

transactionalDefaultsobjectoptional

The subject, preview text and sender a transactional send of this template uses unless the send gives its own; campaigns and journeys set their own. A field left out stays as it is; null clears it.

4 child attributes
subjectstring | nulloptional

Merge tags may read event.properties.*.

1–998 characters

previewTextstring | nulloptional

Merge tags may read event.properties.*.

1–255 characters

fromstring | nulloptional

One address, optionally with a display name; its domain must be verified when a send uses it.

1–320 characters

replyTostring | nulloptional

email · up to 320 characters

translationsmap<string, object> | nulloptional

at most 30 keys

3 child attributes
subjectstringoptional

1–998 characters

previewTextstringoptional

1–255 characters

templateSnapshotobjectoptional

The email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.

One of 2 shapes
DesignSnapshotInput
6 child attributes
kind"design"optional

design: built from blocks. Left out, design.

schemaVersionintegerrequired

The block format version; use the current one, 1.

min > 0 · max 1000

blocksobject[]required

The 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

themeEmailThemeInputrequired

Theme values this email overrides.

languagestringoptional

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and 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 | nulloptional

Plain text sent instead of the version generated from the blocks.

up to 100,000 characters

HtmlSnapshotInput
3 child attributes
kind"html"required

html: the whole email written as HTML.

htmlstringrequired

The 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 | nulloptional

Plain text sent instead of the version generated from the HTML.

up to 100,000 characters

aliasstring | nulloptional

Unique in the workspace; a transactional send may name the template by it in email.template. Null clears it.

pattern ^[a-z0-9]+(?:[-_][a-z0-9]+)*$ · up to 64 characters

tagsstring[]optional

Tag names, up to 20, matched without case; a tag the workspace lacks is created. On update, replaces the tags whole: [] removes them all.

at most 20 items

CreateHtmlTemplateInput
8 child attributes
kind"html"required

html: the whole email written as HTML, kept as code.

htmlstringrequired

The 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

namestringrequired

1–255 characters

plainTextOverridestring | nulloptional

Plain text sent instead of the version generated from the design or HTML; null clears it.

up to 100,000 characters

transactionalDefaultsobjectoptional

The subject, preview text and sender a transactional send of this template uses unless the send gives its own; campaigns and journeys set their own. A field left out stays as it is; null clears it.

4 child attributes
subjectstring | nulloptional

Merge tags may read event.properties.*.

1–998 characters

previewTextstring | nulloptional

Merge tags may read event.properties.*.

1–255 characters

fromstring | nulloptional

One address, optionally with a display name; its domain must be verified when a send uses it.

1–320 characters

replyTostring | nulloptional

email · up to 320 characters

translationsmap<string, object> | nulloptional

at most 30 keys

3 child attributes
subjectstringoptional

1–998 characters

previewTextstringoptional

1–255 characters

templateSnapshotobjectoptional

The email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.

One of 2 shapes
DesignSnapshotInput
6 child attributes
kind"design"optional

design: built from blocks. Left out, design.

schemaVersionintegerrequired

The block format version; use the current one, 1.

min > 0 · max 1000

blocksobject[]required

The 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

themeEmailThemeInputrequired

Theme values this email overrides.

languagestringoptional

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and 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 | nulloptional

Plain text sent instead of the version generated from the blocks.

up to 100,000 characters

HtmlSnapshotInput
3 child attributes
kind"html"required

html: the whole email written as HTML.

htmlstringrequired

The 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 | nulloptional

Plain text sent instead of the version generated from the HTML.

up to 100,000 characters

aliasstring | nulloptional

Unique in the workspace; a transactional send may name the template by it in email.template. Null clears it.

pattern ^[a-z0-9]+(?:[-_][a-z0-9]+)*$ · up to 64 characters

tagsstring[]optional

Tag names, up to 20, matched without case; a tag the workspace lacks is created. On update, replaces the tags whole: [] removes them all.

at most 20 items

Returns

Returns 201 Created with a Template in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 201 CreatedThe newly created template.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
  • 413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).
  • 415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).

One of 2 shapes:

DesignTemplate
18 child attributes
idstringrequired

uuid

namestringrequired
plainTextOverridestring | nullrequired

Plain text sent instead of the version generated from the design or HTML.

transactionalDefaultsTransactionalDefaultsrequired

What a transactional send of the template uses unless the send gives its own; null leaves it to the send. Campaigns and journeys set their own.

4 child attributes
subjectstring | nullrequired

The subject line; may hold merge tags.

previewTextstring | nullrequired

The inbox preview text after the subject; may hold merge tags.

fromstring | nullrequired

The sender: one address, optionally with a display name.

replyTostring | nullrequired

The address replies go to.

email

translationsmap<string, object> | nullrequired

at most 30 keys

3 child attributes
subjectstringoptional

1–998 characters

previewTextstringoptional

1–255 characters

templateSnapshotobjectoptional

The 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"optional

design: built from blocks. Left out, design.

schemaVersionintegerrequired

The block format version; use the current one, 1.

min > 0 · max 1000

blocksobject[]required

The 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

themeEmailThemerequired

Theme values this email overrides.

languagestringoptional

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and 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 | nulloptional

Plain text sent instead of the version generated from the blocks.

up to 100,000 characters

HtmlSnapshot
3 child attributes
kind"html"required

html: the whole email written as HTML.

htmlstringrequired

The 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 | nulloptional

Plain text sent instead of the version generated from the HTML.

up to 100,000 characters

aliasstring | nullrequired

The name a transactional send may use in email.template.

publishedVersioninteger | nullrequired

The version API sends use; null until published. The template itself is the draft.

min > 0

hasUnpublishedChangesbooleanrequired

The draft differs from the published version, the brand or a shared block it places has changed since it was published, or it was never published.

revisionintegerrequired

Raised by every edit. Send it back as expectedRevision on the update so a change made since you read it is refused instead of overwritten.

min > 0 · max 2147483647

thumbnailUrlstring | nullrequired

A small picture of the design (WebP, 640 × 853, shown at half size), redrawn a few seconds after each save, at a new address each time; null until the first is drawn.

uri

tagsstring[]required

Tag names, sorted without case.

createdAtstringrequired

date-time

updatedAtstringrequired

date-time

kind"design"required

Built from blocks in the designer.

schemaVersionintegerrequired

The block format version.

min > 0 · max 1000

blocksobject[]required

The 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"header"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

The logo image's URL; without one, the brand kit's logo.

up to 2,048 characters

altstringoptional

The logo's alt text. Without src or 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

widthstringoptional

A 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.

alignstringoptional

When 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

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"heading"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

sizestringoptional

one of 28px, 22px, 18px

alignstringoptional

When 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

weightstringoptional

one of regular, bold

TextBlock
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"text"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

alignstringoptional

When 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"image"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

widthstringoptional

A 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.

alignstringoptional

When 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

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"button"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

alignstringoptional

When 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

fullWidthbooleanoptional
colorstringoptional

A hex colour, or a theme reference: accent, canvas, or accent-tint / canvas-tint (a light tint of it), which follows the theme.

buttonStylestringoptional

This button's style, in place of the theme's.

one of solid, outline

DividerBlock
11 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"divider"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

thicknessintegeroptional

Line weight in px.

min 1 · max 10

colorstringoptional

A hex colour, or a theme reference: accent, canvas, or accent-tint / canvas-tint (a light tint of it), which follows the theme.

lineStylestringoptional

one of solid, dashed, dotted

widthstringoptional

How much of the row the line spans.

one of 100%, 75%, 50%, 25%

alignstringoptional

When 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"spacer"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

sizestringoptional

The height, from "4px" to "200px".

pattern ^\d{1,3}px$

ColumnsBlock
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"columns"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

widthsinteger[]optional

Each 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

valignstringoptional

Where shorter columns sit against the tallest one.

one of top, middle, bottom

stackOnMobilebooleanoptional

False keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.

columnsobject[][]required

The child blocks of each column, left to right: exactly 2 arrays.

at least 2 items · at most 2 items

Columns3Block
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"columns3"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

widthsinteger[]optional

Each 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

valignstringoptional

Where shorter columns sit against the tallest one.

one of top, middle, bottom

stackOnMobilebooleanoptional

False keeps the columns side by side on phones too, such as a two-across product grid; by default they stack.

columnsobject[][]required

The child blocks of each column, left to right: exactly 3 arrays.

at least 3 items · at most 3 items

ImageTextBlock
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"imagetext"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

textstringoptional

up to 100,000 characters

sidestringoptional

Which 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"imagegroup"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

count2 | 3optional
imagesobject[]optional

at most 3 items

2 child attributes
srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

BoxedBlock
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"boxed"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

alignstringoptional

When 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"quote"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

text2stringoptional

up to 100,000 characters

ListBlock
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"list"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

ProductBlock
13 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"product"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

weightstringoptional

The name and price in bold (the default) or regular weight.

one of regular, bold

textstringoptional

up to 100,000 characters

text2stringoptional

up to 100,000 characters

descstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

VideoBlock
10 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"video"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

srcstringoptional

up to 2,048 characters

altstringoptional

up to 100,000 characters

textstringoptional

up to 100,000 characters

hrefstringoptional

Where it links: an https:, http:, mailto: or tel: address, or a merge tag. https:// is added to a bare address such as acme.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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"social"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

alignstringoptional

When 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

linksobject[]optional

The profiles to show; without any, the brand kit's social links.

at most 10 items

2 child attributes
labelstringrequired

1–80 characters

hrefstringrequired

uri · pattern ^[^\s{}]*$ · up to 2,048 characters

displaystringoptional

Each 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, text

iconStylestringoptional

Icons in each network's colour (the default), near-black, or white for a dark background.

one of color, dark, light

MenuBlock
9 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"menu"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

linksobject[]optional

The entries, left to right: at most 8 { label, href }.

at most 8 items

2 child attributes
labelstringrequired

1–80 characters

hrefstringrequired

uri · pattern ^[^\s{}]*$ · up to 2,048 characters

alignstringoptional

When 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

separatorstringoptional

What stands between entries: space only, a bar or a dot.

one of none, bar, dot

HtmlBlock
7 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"html"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

textstringoptional

up to 100,000 characters

SectionBlock
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"section"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

backgroundImagestringoptional

A 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 characters

blocksobject[]required

The section's child blocks, drawn inside its box.

at least 1 item · at most 200 items

FooterBlock
8 child attributes
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"footer"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

textstringoptional

up to 100,000 characters

lockedtrueoptional
alignstringoptional

When 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

unsubscribeLinkbooleanoptional

False 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.

unsubscribeLabelstringoptional

The 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"repeat"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfobjectoptional

Show 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
visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

liststringrequired

The list to repeat over: event.properties.<name> (a journey's event, or a transactional send's data) or contact.attributes.<name>.

pattern ^(?:contact\.attributes\.[\p{L}\p{N}\p{M}_.-]{1,64}|(?:event\.properties|data)\.[A-Za-z0-9_.-]+)$

limitintegeroptional

min 1 · max 100

blocksobject[]required

The 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
idstringrequired

Identifies the block within the template; unique among its blocks.

1–128 characters

type"shared"required
styleEmailBlockStyleoptional

Visual overrides for this block, such as colours, font and spacing.

19 child attributes
backgroundColorstringoptional

Fill behind the block.

fontFamilystringoptional

A 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-garamond

fontSizeintegeroptional

Text size in px, 12 to 72.

min 12 · max 72

mobileFontSizeintegeroptional

Text size in px on phones (screens up to 620px), 12 to 72. Email apps that ignore mobile styles use fontSize.

min 12 · max 72

paddingobjectoptional

Space inside the block in px, 0 to 100 per side; omitted sides keep their default.

mobilePaddingobjectoptional

Space 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 use padding.

borderWidthintegeroptional

Border thickness in px; 0 for none.

min 0 · max 10

borderStylestringoptional

Border line style.

one of solid, dashed, dotted

borderColorstringoptional

Border colour.

borderRadiusintegeroptional

Corner rounding in px, 0 to 100.

min 0 · max 100

textColorstringoptional

Text colour.

linkColorstringoptional

Colour of links in the text.

linkUnderlinebooleanoptional

Set to false for links without an underline, such as a row of rating numbers or stars.

letterSpacingnumberoptional

Space between letters in px, such as 3 for a spaced-out eyebrow line.

min -2 · max 20

textTransformstringoptional

Set to uppercase to capitalise all text.

one of none, uppercase

lineHeightnumberoptional

A multiple of the font size.

min 1 · max 3

fontWeightstringoptional

Text weight.

one of regular, bold

fontStylestringoptional

Text style.

one of normal, italic

insetbooleanoptional

Draw the background and border as a box within the content width, not across the whole row.

visibleIfPresentstringoptional

Show the block only when this value is present (not missing, empty or false), such as data.vat for 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_.-]+)$

showOnstringoptional

Show 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, desktop

sharedBlockIdstringrequired

The workspace's shared block placed here, by reference.

uuid

overrideobject[]optional

Edited here only: these blocks render instead of the shared content. Omit to follow the shared block.

at least 1 item · at most 200 items

themeEmailThemerequired

Theme values this email overrides.

14 child attributes
bodyFontFamilystringoptional

Body font stack, such as Inter, sans-serif.

pattern ^[\w\s,'"-]+$ · up to 200 characters

headingFontFamilystringoptional

Heading font stack.

pattern ^[\w\s,'"-]+$ · up to 200 characters

cardBackgroundColorstringoptional

Background of the email card, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

canvasBackgroundColorstringoptional

Background behind the card, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

textColorstringoptional

Default text colour, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

accentColorstringoptional

Brand colour for buttons and highlights, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

linkColorstringoptional

Link colour, as hex.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

headingColorstringoptional

Heading colour, as hex; unset, headings take textColor.

pattern ^#(?:[0-9a-f]{3}|[0-9a-f]{6})$

buttonTextColorstringoptional

Label 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})$

baseFontSizestringoptional

Body text size; headings and buttons scale with it. Unset is 16px.

one of 14px, 15px, 16px, 17px, 18px

cardWidthstringoptional

Width of the email card on wide screens.

one of 560px, 600px, 680px

cardBorderRadiusstringoptional

Corner rounding of the email's card.

one of 0px, 6px, 12px, 16px, 24px, 999px

buttonBorderRadiusstringoptional

Button corners; cardBorderRadius rounds the email's card and, when this is unset, buttons.

one of 0px, 6px, 12px, 16px, 24px, 999px

buttonStylestringoptional

Button style.

one of solid, outline

languagestringrequired

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and the reading direction: Arabic, Hebrew, Persian, Urdu and other right-to-left languages render right to left. Defaults to "en".

HtmlTemplate
15 child attributes
idstringrequired

uuid

namestringrequired
plainTextOverridestring | nullrequired

Plain text sent instead of the version generated from the design or HTML.

transactionalDefaultsTransactionalDefaultsrequired

What a transactional send of the template uses unless the send gives its own; null leaves it to the send. Campaigns and journeys set their own.

4 child attributes
subjectstring | nullrequired

The subject line; may hold merge tags.

previewTextstring | nullrequired

The inbox preview text after the subject; may hold merge tags.

fromstring | nullrequired

The sender: one address, optionally with a display name.

replyTostring | nullrequired

The address replies go to.

email

translationsmap<string, object> | nullrequired

at most 30 keys

3 child attributes
subjectstringoptional

1–998 characters

previewTextstringoptional

1–255 characters

templateSnapshotobjectoptional

The 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"optional

design: built from blocks. Left out, design.

schemaVersionintegerrequired

The block format version; use the current one, 1.

min > 0 · max 1000

blocksobject[]required

The 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

themeEmailThemerequired

Theme values this email overrides.

languagestringoptional

The language the email is written in, as a BCP 47 tag ("en", "fr-BE", "ar"). It sets the HTML lang and 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 | nulloptional

Plain text sent instead of the version generated from the blocks.

up to 100,000 characters

HtmlSnapshot
3 child attributes
kind"html"required

html: the whole email written as HTML.

htmlstringrequired

The 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 | nulloptional

Plain text sent instead of the version generated from the HTML.

up to 100,000 characters

aliasstring | nullrequired

The name a transactional send may use in email.template.

publishedVersioninteger | nullrequired

The version API sends use; null until published. The template itself is the draft.

min > 0

hasUnpublishedChangesbooleanrequired

The draft differs from the published version, the brand or a shared block it places has changed since it was published, or it was never published.

revisionintegerrequired

Raised by every edit. Send it back as expectedRevision on the update so a change made since you read it is refused instead of overwritten.

min > 0 · max 2147483647

thumbnailUrlstring | nullrequired

A small picture of the design (WebP, 640 × 853, shown at half size), redrawn a few seconds after each save, at a new address each time; null until the first is drawn.

uri

tagsstring[]required

Tag names, sorted without case.

createdAtstringrequired

date-time

updatedAtstringrequired

date-time

kind"html"required

The whole email written as HTML, kept as code.

htmlstringrequired

The whole email, scripts and the like removed when it was saved.

Headers on 201 Created

Idempotency-Replaystringoptional

true when this is the stored response to an earlier request with the same key.

one of true