marketing_templates_read, marketing_templates_write
The template’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
The default link color, as set under Email styles in the email builder. Null when the merchant left it unset.
The template’s source language, its translatable strings and its saved translations. Null if the template was deleted while reading.Requires:
marketing_templates_readRender this template, to see what recipients get. Use a width of about 375 for a phone.Requires:
marketing_templates_readThe blocks that make up the email body, in order. Nested column children keep their own ids. A type this API version does not model field-by-field is returned as EmailTemplateUnknownSection.
sections with every field selected, as JSON: one element per root block, in order, with __typename and nested column children. Empty or unreadable stored sections are []. Edits go through operations.The subject line as authored, before per-recipient substitution. A subject containing
{{ }} placeholders is filled in per customer at send time, and some sends prepend a prefix, so this is not necessarily the subject any one customer saw. Empty when the template has no subject of its own.The trigger context this template is valid for. Immutable after create. UNKNOWN when the stored trigger is not modeled in this API version.