Email templates
The subject and text of the emails a website sends — the contact form’s notification today — as plain text with {{placeholders}}, plus the per-view overlay that says it in another view’s language. The platform creates the default template of each kind; it can be edited, not deleted.
List email templates
The text of one kind of email a website sends: a subject and a plain-text body with {{placeholders}}, written in the website's default language. The platform creates one template of each kind for every website, marked is_default, and a website may add its own. What another view says instead lives in the template's views overlays, and a field a view does not override is sent as written here.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: display_name asc. Sortable: create_time, display_name.
filterAIP-160 subset (§8). Filterable: create_time, display_name, is_default, kind. A field outside the list is INVALID_ARGUMENT.
List email templates › Responses
One page of email_templates.
This page of email_templates, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create email template
Adds a template of your own beside the one the platform created for its kind — a second wording to switch the website to, for instance. kind is required and must be a kind of email the platform sends; an unknown one is INVALID_ARGUMENT naming the kinds there are. A template created here is never the default of its kind: is_default is the platform's to set.
path Parameters
website_idId of the parent website.
Create email template › Request Body
display_nameThe template's name in the admin. A label for the people who edit it — the email's recipient never sees it.
subjectThe email's subject line, with {{placeholders}} as in body. It stays one line: a line break a placeholder's value brings in is sent as a space.
bodyThe email's text: plain text, where an empty line starts a new paragraph and {{placeholder}} is replaced by its value when the email is sent. There is no HTML to write — the platform sets the text in its own layout. A placeholder the kind does not have is replaced by nothing. A feedback template may use {{name}}, {{email}} and {{phone}} — what the visitor entered, empty when the form does not ask for it — {{message}}, what they wrote, {{page_title}}, the title of the contact page in the language of its view, and {{website_name}}. Every customer kind may use {{email}}, the address they sign in with, and {{website_name}}, and every one but customer_sign_in_code {{display_name}} — the customer's name, or their email address when they gave none; a customer_welcome template also {{account_url}}, the address of their account page, a customer_password_reset template {{reset_url}}, the one-time link to the page where they choose a new password, and a customer_email_changed template {{previous_email}} — the address they signed in with until the change, which the email is sent to, and the one {{display_name}} falls back to — and {{account_url}}; there {{email}} is the new address. A customer_sign_in_code template may use {{code}}, the six-digit code, and {{expire_minutes}}, how many minutes it works; there {{email}} is the address the code was sent to, which may have no account yet. A reset text that leaves {{reset_url}} out, and a sign-in code text that leaves {{code}} out, is not sent: the platform's own English email goes instead. Every editorial kind may use {{website_name}}. An editorial_topics_proposed template also {{topic_count}}, {{topics}} — the titles of the new topics, one per line — {{duplicates_skipped}}, {{topic_status}} (PROPOSED or CANDIDATE) and {{topics_url}}; an editorial_article_drafted template {{title}}, {{scheduled_time}} (YYYY-MM-DD HH:MM in the plan's time zone), {{verdict}}, {{score}}, {{issues}} — one per line — and {{cost}}, these four empty for a draft the AI did not write, and {{edit_url}}, {{generation_url}} and {{calendar_url}}; an editorial_article_published template {{title}}, {{public_url}}, the article's address on the website, {{edit_url}} and {{calendar_url}}; an editorial_failure template {{title}} and {{scheduled_time}}, empty when no single article is concerned, {{stage}} — the step that went wrong — {{reason}}, its code, {{message}}, {{issues}} and {{url}}, the run's page or the calendar. The editorial links lead into the admin, and are empty when the platform has no address of it configured. Both order kinds, order_placed and order_placed_owner, may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what was ordered, one product per line with its options, quantity and total — {{subtotal}} and {{total}} with their currency, {{shipping_total}} — the shipping's row, Shipping (Standard delivery): 5.00 USD, for between the subtotal and the tax — and {{shipping_method}}, the name of the way to ship, both empty when the order does not ship, {{tax}} — the tax on top of the prices, one line per rate, for between the subtotal and the total — and {{tax_included}} — the tax the prices hold, likewise, for after the total — each empty, its line left out, when the order has no such tax, {{payment_method}}, {{payment_instructions}}, what the view tells its customers about paying, {{shipping_address}}, one part per line, and {{billing_address}}, likewise, empty when the order is billed to the shipping address; an order_placed_owner template also {{customer_email}}, {{customer_phone}}, {{customer_tax_id}} — the customer's tax number where the website asks for one — and {{note}}, these three empty when the customer gave none. An order_shipped template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what this parcel holds, one product per line with its options and the quantity sent — {{carrier}}, {{tracking_number}} and {{tracking_url}}, each empty when the shop gave none, and {{shipping_address}}; an order_cancelled template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} as in order_placed, {{shipping_total}}, {{total}} and {{cancel_reason}}, empty when the shop gave no reason; an order_refunded template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what the refund gives back, one product per line with the units it takes back and the amount — {{tax}}, the tax it gives back, one line per rate, empty when none, {{shipping_total}}, the shipping it gives back, empty when none, {{total}}, what it gives back in all, and {{refund_reason}}, empty when the shop gave no reason. The three return kinds, return_requested_owner, return_approved and return_declined, may use {{website_name}}, {{order_number}}, {{customer_name}} and {{lines}} — the goods of the return, one product per line with its options and the units that come back; a return_requested_owner template also {{customer_email}} and {{return_reason}}, why the customer wants to send them back, and a return_declined template {{decline_reason}}, empty when the shop gave none. An order_dispute_opened_owner template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{customer_email}}, {{dispute_amount}} — the amount disputed, with its currency — {{dispute_reason}}, the payment provider's code of why, such as fraudulent, empty when it named none, and {{dispute_respond_by}} — when the shop's evidence is due, a date and a time in UTC — empty when the provider named none. An order_payment_request template may use the placement's {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}}, {{subtotal}}, {{shipping_total}}, {{shipping_method}}, {{tax}}, {{total}}, {{tax_included}} and {{payment_method}}, and {{payment_url}} — the page where the customer pays the order, which the email also carries as a button — and {{payment_due}}, when it is due to be paid, a date and a time in UTC. Both document kinds, invoice_issued and credit_note_issued, may use {{website_name}}, {{document_number}}, {{issue_date}} — the day it was issued, as the email's language writes a date — {{order_number}}, {{customer_name}}, {{seller}} and {{buyer}} — each one part per line, with its tax number — {{lines}} — one product per line with its SKU, quantity, unit price and amount, then the shipping — {{subtotal}}, {{tax}}, one line per rate, empty when none, {{total}} and {{footer_note}}; a credit_note_issued template also {{corrected_invoice_number}} and {{corrected_invoice_date}}, the invoice it corrects. A line made of placeholders that are all empty is left out. A text of any order kind that leaves {{order_number}} out, and of a document kind that leaves {{document_number}} out, is not sent: the platform's own English email goes instead.
kindWhich email the template is for: feedback — the message a website's contact form sends to its notification addresses; customer_welcome — what a visitor receives after registering an account on the website; customer_password_reset — the link a customer follows to choose a new password; customer_email_changed — what a customer receives at their previous address when they change the address they sign in with; customer_sign_in_code — the six-digit code a customer signs in with, sent to the address they typed; editorial_topics_proposed, editorial_article_drafted, editorial_article_published and editorial_failure — what the editorial desk sends the notification addresses of its plan when it has proposed topics, a draft is ready, an article has gone live, or something went wrong; order_placed — what a customer receives once their order is placed — and order_placed_owner — what the shop receives about it at its notification address; order_shipped — what a customer receives when part or all of their order is sent — order_cancelled — when the shop cancels it — and order_refunded — when the shop gives money of it back; return_requested_owner — what the shop receives at its notification address when a customer asks to return goods of their order — return_approved and return_declined — what the customer receives when the shop approves or declines that request; order_dispute_opened_owner — what the shop receives at its notification address when the customer's bank disputes a payment of an order at the payment provider; order_payment_request — what a customer receives when the shop places an order for them to pay online by its link; invoice_issued and credit_note_issued — what a customer receives when MooverApp issues the invoice of their order or a credit note that corrects it, the document whole in the email. The kind decides which placeholders the text may use. Required on Create and fixed afterwards.
Create email template › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
kindWhich email the template is for: feedback — the message a website's contact form sends to its notification addresses; customer_welcome — what a visitor receives after registering an account on the website; customer_password_reset — the link a customer follows to choose a new password; customer_email_changed — what a customer receives at their previous address when they change the address they sign in with; customer_sign_in_code — the six-digit code a customer signs in with, sent to the address they typed; editorial_topics_proposed, editorial_article_drafted, editorial_article_published and editorial_failure — what the editorial desk sends the notification addresses of its plan when it has proposed topics, a draft is ready, an article has gone live, or something went wrong; order_placed — what a customer receives once their order is placed — and order_placed_owner — what the shop receives about it at its notification address; order_shipped — what a customer receives when part or all of their order is sent — order_cancelled — when the shop cancels it — and order_refunded — when the shop gives money of it back; return_requested_owner — what the shop receives at its notification address when a customer asks to return goods of their order — return_approved and return_declined — what the customer receives when the shop approves or declines that request; order_dispute_opened_owner — what the shop receives at its notification address when the customer's bank disputes a payment of an order at the payment provider; order_payment_request — what a customer receives when the shop places an order for them to pay online by its link; invoice_issued and credit_note_issued — what a customer receives when MooverApp issues the invoice of their order or a credit note that corrects it, the document whole in the email. The kind decides which placeholders the text may use. Required on Create and fixed afterwards.
display_nameThe template's name in the admin. A label for the people who edit it — the email's recipient never sees it.
subjectThe email's subject line, with {{placeholders}} as in body. It stays one line: a line break a placeholder's value brings in is sent as a space.
bodyThe email's text: plain text, where an empty line starts a new paragraph and {{placeholder}} is replaced by its value when the email is sent. There is no HTML to write — the platform sets the text in its own layout. A placeholder the kind does not have is replaced by nothing. A feedback template may use {{name}}, {{email}} and {{phone}} — what the visitor entered, empty when the form does not ask for it — {{message}}, what they wrote, {{page_title}}, the title of the contact page in the language of its view, and {{website_name}}. Every customer kind may use {{email}}, the address they sign in with, and {{website_name}}, and every one but customer_sign_in_code {{display_name}} — the customer's name, or their email address when they gave none; a customer_welcome template also {{account_url}}, the address of their account page, a customer_password_reset template {{reset_url}}, the one-time link to the page where they choose a new password, and a customer_email_changed template {{previous_email}} — the address they signed in with until the change, which the email is sent to, and the one {{display_name}} falls back to — and {{account_url}}; there {{email}} is the new address. A customer_sign_in_code template may use {{code}}, the six-digit code, and {{expire_minutes}}, how many minutes it works; there {{email}} is the address the code was sent to, which may have no account yet. A reset text that leaves {{reset_url}} out, and a sign-in code text that leaves {{code}} out, is not sent: the platform's own English email goes instead. Every editorial kind may use {{website_name}}. An editorial_topics_proposed template also {{topic_count}}, {{topics}} — the titles of the new topics, one per line — {{duplicates_skipped}}, {{topic_status}} (PROPOSED or CANDIDATE) and {{topics_url}}; an editorial_article_drafted template {{title}}, {{scheduled_time}} (YYYY-MM-DD HH:MM in the plan's time zone), {{verdict}}, {{score}}, {{issues}} — one per line — and {{cost}}, these four empty for a draft the AI did not write, and {{edit_url}}, {{generation_url}} and {{calendar_url}}; an editorial_article_published template {{title}}, {{public_url}}, the article's address on the website, {{edit_url}} and {{calendar_url}}; an editorial_failure template {{title}} and {{scheduled_time}}, empty when no single article is concerned, {{stage}} — the step that went wrong — {{reason}}, its code, {{message}}, {{issues}} and {{url}}, the run's page or the calendar. The editorial links lead into the admin, and are empty when the platform has no address of it configured. Both order kinds, order_placed and order_placed_owner, may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what was ordered, one product per line with its options, quantity and total — {{subtotal}} and {{total}} with their currency, {{shipping_total}} — the shipping's row, Shipping (Standard delivery): 5.00 USD, for between the subtotal and the tax — and {{shipping_method}}, the name of the way to ship, both empty when the order does not ship, {{tax}} — the tax on top of the prices, one line per rate, for between the subtotal and the total — and {{tax_included}} — the tax the prices hold, likewise, for after the total — each empty, its line left out, when the order has no such tax, {{payment_method}}, {{payment_instructions}}, what the view tells its customers about paying, {{shipping_address}}, one part per line, and {{billing_address}}, likewise, empty when the order is billed to the shipping address; an order_placed_owner template also {{customer_email}}, {{customer_phone}}, {{customer_tax_id}} — the customer's tax number where the website asks for one — and {{note}}, these three empty when the customer gave none. An order_shipped template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what this parcel holds, one product per line with its options and the quantity sent — {{carrier}}, {{tracking_number}} and {{tracking_url}}, each empty when the shop gave none, and {{shipping_address}}; an order_cancelled template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} as in order_placed, {{shipping_total}}, {{total}} and {{cancel_reason}}, empty when the shop gave no reason; an order_refunded template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what the refund gives back, one product per line with the units it takes back and the amount — {{tax}}, the tax it gives back, one line per rate, empty when none, {{shipping_total}}, the shipping it gives back, empty when none, {{total}}, what it gives back in all, and {{refund_reason}}, empty when the shop gave no reason. The three return kinds, return_requested_owner, return_approved and return_declined, may use {{website_name}}, {{order_number}}, {{customer_name}} and {{lines}} — the goods of the return, one product per line with its options and the units that come back; a return_requested_owner template also {{customer_email}} and {{return_reason}}, why the customer wants to send them back, and a return_declined template {{decline_reason}}, empty when the shop gave none. An order_dispute_opened_owner template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{customer_email}}, {{dispute_amount}} — the amount disputed, with its currency — {{dispute_reason}}, the payment provider's code of why, such as fraudulent, empty when it named none, and {{dispute_respond_by}} — when the shop's evidence is due, a date and a time in UTC — empty when the provider named none. An order_payment_request template may use the placement's {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}}, {{subtotal}}, {{shipping_total}}, {{shipping_method}}, {{tax}}, {{total}}, {{tax_included}} and {{payment_method}}, and {{payment_url}} — the page where the customer pays the order, which the email also carries as a button — and {{payment_due}}, when it is due to be paid, a date and a time in UTC. Both document kinds, invoice_issued and credit_note_issued, may use {{website_name}}, {{document_number}}, {{issue_date}} — the day it was issued, as the email's language writes a date — {{order_number}}, {{customer_name}}, {{seller}} and {{buyer}} — each one part per line, with its tax number — {{lines}} — one product per line with its SKU, quantity, unit price and amount, then the shipping — {{subtotal}}, {{tax}}, one line per rate, empty when none, {{total}} and {{footer_note}}; a credit_note_issued template also {{corrected_invoice_number}} and {{corrected_invoice_date}}, the invoice it corrects. A line made of placeholders that are all empty is left out. A text of any order kind that leaves {{order_number}} out, and of a document kind that leaves {{document_number}} out, is not sent: the platform's own English email goes instead.
is_defaultWhether this is the template the platform created for its kind — the one an email of that kind is sent from when the website has chosen no other. There is one per kind, only the platform sets it, and it cannot be deleted.
Get email template
The text of one kind of email a website sends: a subject and a plain-text body with {{placeholders}}, written in the website's default language. The platform creates one template of each kind for every website, marked is_default, and a website may add its own. What another view says instead lives in the template's views overlays, and a field a view does not override is sent as written here.
path Parameters
website_idId of the parent website.
email_template_idId of the parent email_template.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get email template › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
kindWhich email the template is for: feedback — the message a website's contact form sends to its notification addresses; customer_welcome — what a visitor receives after registering an account on the website; customer_password_reset — the link a customer follows to choose a new password; customer_email_changed — what a customer receives at their previous address when they change the address they sign in with; customer_sign_in_code — the six-digit code a customer signs in with, sent to the address they typed; editorial_topics_proposed, editorial_article_drafted, editorial_article_published and editorial_failure — what the editorial desk sends the notification addresses of its plan when it has proposed topics, a draft is ready, an article has gone live, or something went wrong; order_placed — what a customer receives once their order is placed — and order_placed_owner — what the shop receives about it at its notification address; order_shipped — what a customer receives when part or all of their order is sent — order_cancelled — when the shop cancels it — and order_refunded — when the shop gives money of it back; return_requested_owner — what the shop receives at its notification address when a customer asks to return goods of their order — return_approved and return_declined — what the customer receives when the shop approves or declines that request; order_dispute_opened_owner — what the shop receives at its notification address when the customer's bank disputes a payment of an order at the payment provider; order_payment_request — what a customer receives when the shop places an order for them to pay online by its link; invoice_issued and credit_note_issued — what a customer receives when MooverApp issues the invoice of their order or a credit note that corrects it, the document whole in the email. The kind decides which placeholders the text may use. Required on Create and fixed afterwards.
display_nameThe template's name in the admin. A label for the people who edit it — the email's recipient never sees it.
subjectThe email's subject line, with {{placeholders}} as in body. It stays one line: a line break a placeholder's value brings in is sent as a space.
bodyThe email's text: plain text, where an empty line starts a new paragraph and {{placeholder}} is replaced by its value when the email is sent. There is no HTML to write — the platform sets the text in its own layout. A placeholder the kind does not have is replaced by nothing. A feedback template may use {{name}}, {{email}} and {{phone}} — what the visitor entered, empty when the form does not ask for it — {{message}}, what they wrote, {{page_title}}, the title of the contact page in the language of its view, and {{website_name}}. Every customer kind may use {{email}}, the address they sign in with, and {{website_name}}, and every one but customer_sign_in_code {{display_name}} — the customer's name, or their email address when they gave none; a customer_welcome template also {{account_url}}, the address of their account page, a customer_password_reset template {{reset_url}}, the one-time link to the page where they choose a new password, and a customer_email_changed template {{previous_email}} — the address they signed in with until the change, which the email is sent to, and the one {{display_name}} falls back to — and {{account_url}}; there {{email}} is the new address. A customer_sign_in_code template may use {{code}}, the six-digit code, and {{expire_minutes}}, how many minutes it works; there {{email}} is the address the code was sent to, which may have no account yet. A reset text that leaves {{reset_url}} out, and a sign-in code text that leaves {{code}} out, is not sent: the platform's own English email goes instead. Every editorial kind may use {{website_name}}. An editorial_topics_proposed template also {{topic_count}}, {{topics}} — the titles of the new topics, one per line — {{duplicates_skipped}}, {{topic_status}} (PROPOSED or CANDIDATE) and {{topics_url}}; an editorial_article_drafted template {{title}}, {{scheduled_time}} (YYYY-MM-DD HH:MM in the plan's time zone), {{verdict}}, {{score}}, {{issues}} — one per line — and {{cost}}, these four empty for a draft the AI did not write, and {{edit_url}}, {{generation_url}} and {{calendar_url}}; an editorial_article_published template {{title}}, {{public_url}}, the article's address on the website, {{edit_url}} and {{calendar_url}}; an editorial_failure template {{title}} and {{scheduled_time}}, empty when no single article is concerned, {{stage}} — the step that went wrong — {{reason}}, its code, {{message}}, {{issues}} and {{url}}, the run's page or the calendar. The editorial links lead into the admin, and are empty when the platform has no address of it configured. Both order kinds, order_placed and order_placed_owner, may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what was ordered, one product per line with its options, quantity and total — {{subtotal}} and {{total}} with their currency, {{shipping_total}} — the shipping's row, Shipping (Standard delivery): 5.00 USD, for between the subtotal and the tax — and {{shipping_method}}, the name of the way to ship, both empty when the order does not ship, {{tax}} — the tax on top of the prices, one line per rate, for between the subtotal and the total — and {{tax_included}} — the tax the prices hold, likewise, for after the total — each empty, its line left out, when the order has no such tax, {{payment_method}}, {{payment_instructions}}, what the view tells its customers about paying, {{shipping_address}}, one part per line, and {{billing_address}}, likewise, empty when the order is billed to the shipping address; an order_placed_owner template also {{customer_email}}, {{customer_phone}}, {{customer_tax_id}} — the customer's tax number where the website asks for one — and {{note}}, these three empty when the customer gave none. An order_shipped template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what this parcel holds, one product per line with its options and the quantity sent — {{carrier}}, {{tracking_number}} and {{tracking_url}}, each empty when the shop gave none, and {{shipping_address}}; an order_cancelled template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} as in order_placed, {{shipping_total}}, {{total}} and {{cancel_reason}}, empty when the shop gave no reason; an order_refunded template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what the refund gives back, one product per line with the units it takes back and the amount — {{tax}}, the tax it gives back, one line per rate, empty when none, {{shipping_total}}, the shipping it gives back, empty when none, {{total}}, what it gives back in all, and {{refund_reason}}, empty when the shop gave no reason. The three return kinds, return_requested_owner, return_approved and return_declined, may use {{website_name}}, {{order_number}}, {{customer_name}} and {{lines}} — the goods of the return, one product per line with its options and the units that come back; a return_requested_owner template also {{customer_email}} and {{return_reason}}, why the customer wants to send them back, and a return_declined template {{decline_reason}}, empty when the shop gave none. An order_dispute_opened_owner template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{customer_email}}, {{dispute_amount}} — the amount disputed, with its currency — {{dispute_reason}}, the payment provider's code of why, such as fraudulent, empty when it named none, and {{dispute_respond_by}} — when the shop's evidence is due, a date and a time in UTC — empty when the provider named none. An order_payment_request template may use the placement's {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}}, {{subtotal}}, {{shipping_total}}, {{shipping_method}}, {{tax}}, {{total}}, {{tax_included}} and {{payment_method}}, and {{payment_url}} — the page where the customer pays the order, which the email also carries as a button — and {{payment_due}}, when it is due to be paid, a date and a time in UTC. Both document kinds, invoice_issued and credit_note_issued, may use {{website_name}}, {{document_number}}, {{issue_date}} — the day it was issued, as the email's language writes a date — {{order_number}}, {{customer_name}}, {{seller}} and {{buyer}} — each one part per line, with its tax number — {{lines}} — one product per line with its SKU, quantity, unit price and amount, then the shipping — {{subtotal}}, {{tax}}, one line per rate, empty when none, {{total}} and {{footer_note}}; a credit_note_issued template also {{corrected_invoice_number}} and {{corrected_invoice_date}}, the invoice it corrects. A line made of placeholders that are all empty is left out. A text of any order kind that leaves {{order_number}} out, and of a document kind that leaves {{document_number}} out, is not sent: the platform's own English email goes instead.
is_defaultWhether this is the template the platform created for its kind — the one an email of that kind is sent from when the website has chosen no other. There is one per kind, only the platform sets it, and it cannot be deleted.
Delete email template
Removes a template together with its per-view overlays. The default template of a kind cannot be deleted — every email of that kind falls back to it — and answers FAILED_PRECONDITION; edit its text instead. An email that was set to send from a deleted template is sent from the default of its kind.
path Parameters
website_idId of the parent website.
email_template_idId of the parent email_template.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete email template › Responses
Deleted. No body (§7).
Update email template
The text of one kind of email a website sends: a subject and a plain-text body with {{placeholders}}, written in the website's default language. The platform creates one template of each kind for every website, marked is_default, and a website may add its own. What another view says instead lives in the template's views overlays, and a field a view does not override is sent as written here.
path Parameters
website_idId of the parent website.
email_template_idId of the parent email_template.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update email template › Request Body
display_nameThe template's name in the admin. A label for the people who edit it — the email's recipient never sees it.
subjectThe email's subject line, with {{placeholders}} as in body. It stays one line: a line break a placeholder's value brings in is sent as a space.
bodyThe email's text: plain text, where an empty line starts a new paragraph and {{placeholder}} is replaced by its value when the email is sent. There is no HTML to write — the platform sets the text in its own layout. A placeholder the kind does not have is replaced by nothing. A feedback template may use {{name}}, {{email}} and {{phone}} — what the visitor entered, empty when the form does not ask for it — {{message}}, what they wrote, {{page_title}}, the title of the contact page in the language of its view, and {{website_name}}. Every customer kind may use {{email}}, the address they sign in with, and {{website_name}}, and every one but customer_sign_in_code {{display_name}} — the customer's name, or their email address when they gave none; a customer_welcome template also {{account_url}}, the address of their account page, a customer_password_reset template {{reset_url}}, the one-time link to the page where they choose a new password, and a customer_email_changed template {{previous_email}} — the address they signed in with until the change, which the email is sent to, and the one {{display_name}} falls back to — and {{account_url}}; there {{email}} is the new address. A customer_sign_in_code template may use {{code}}, the six-digit code, and {{expire_minutes}}, how many minutes it works; there {{email}} is the address the code was sent to, which may have no account yet. A reset text that leaves {{reset_url}} out, and a sign-in code text that leaves {{code}} out, is not sent: the platform's own English email goes instead. Every editorial kind may use {{website_name}}. An editorial_topics_proposed template also {{topic_count}}, {{topics}} — the titles of the new topics, one per line — {{duplicates_skipped}}, {{topic_status}} (PROPOSED or CANDIDATE) and {{topics_url}}; an editorial_article_drafted template {{title}}, {{scheduled_time}} (YYYY-MM-DD HH:MM in the plan's time zone), {{verdict}}, {{score}}, {{issues}} — one per line — and {{cost}}, these four empty for a draft the AI did not write, and {{edit_url}}, {{generation_url}} and {{calendar_url}}; an editorial_article_published template {{title}}, {{public_url}}, the article's address on the website, {{edit_url}} and {{calendar_url}}; an editorial_failure template {{title}} and {{scheduled_time}}, empty when no single article is concerned, {{stage}} — the step that went wrong — {{reason}}, its code, {{message}}, {{issues}} and {{url}}, the run's page or the calendar. The editorial links lead into the admin, and are empty when the platform has no address of it configured. Both order kinds, order_placed and order_placed_owner, may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what was ordered, one product per line with its options, quantity and total — {{subtotal}} and {{total}} with their currency, {{shipping_total}} — the shipping's row, Shipping (Standard delivery): 5.00 USD, for between the subtotal and the tax — and {{shipping_method}}, the name of the way to ship, both empty when the order does not ship, {{tax}} — the tax on top of the prices, one line per rate, for between the subtotal and the total — and {{tax_included}} — the tax the prices hold, likewise, for after the total — each empty, its line left out, when the order has no such tax, {{payment_method}}, {{payment_instructions}}, what the view tells its customers about paying, {{shipping_address}}, one part per line, and {{billing_address}}, likewise, empty when the order is billed to the shipping address; an order_placed_owner template also {{customer_email}}, {{customer_phone}}, {{customer_tax_id}} — the customer's tax number where the website asks for one — and {{note}}, these three empty when the customer gave none. An order_shipped template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what this parcel holds, one product per line with its options and the quantity sent — {{carrier}}, {{tracking_number}} and {{tracking_url}}, each empty when the shop gave none, and {{shipping_address}}; an order_cancelled template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} as in order_placed, {{shipping_total}}, {{total}} and {{cancel_reason}}, empty when the shop gave no reason; an order_refunded template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what the refund gives back, one product per line with the units it takes back and the amount — {{tax}}, the tax it gives back, one line per rate, empty when none, {{shipping_total}}, the shipping it gives back, empty when none, {{total}}, what it gives back in all, and {{refund_reason}}, empty when the shop gave no reason. The three return kinds, return_requested_owner, return_approved and return_declined, may use {{website_name}}, {{order_number}}, {{customer_name}} and {{lines}} — the goods of the return, one product per line with its options and the units that come back; a return_requested_owner template also {{customer_email}} and {{return_reason}}, why the customer wants to send them back, and a return_declined template {{decline_reason}}, empty when the shop gave none. An order_dispute_opened_owner template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{customer_email}}, {{dispute_amount}} — the amount disputed, with its currency — {{dispute_reason}}, the payment provider's code of why, such as fraudulent, empty when it named none, and {{dispute_respond_by}} — when the shop's evidence is due, a date and a time in UTC — empty when the provider named none. An order_payment_request template may use the placement's {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}}, {{subtotal}}, {{shipping_total}}, {{shipping_method}}, {{tax}}, {{total}}, {{tax_included}} and {{payment_method}}, and {{payment_url}} — the page where the customer pays the order, which the email also carries as a button — and {{payment_due}}, when it is due to be paid, a date and a time in UTC. Both document kinds, invoice_issued and credit_note_issued, may use {{website_name}}, {{document_number}}, {{issue_date}} — the day it was issued, as the email's language writes a date — {{order_number}}, {{customer_name}}, {{seller}} and {{buyer}} — each one part per line, with its tax number — {{lines}} — one product per line with its SKU, quantity, unit price and amount, then the shipping — {{subtotal}}, {{tax}}, one line per rate, empty when none, {{total}} and {{footer_note}}; a credit_note_issued template also {{corrected_invoice_number}} and {{corrected_invoice_date}}, the invoice it corrects. A line made of placeholders that are all empty is left out. A text of any order kind that leaves {{order_number}} out, and of a document kind that leaves {{document_number}} out, is not sent: the platform's own English email goes instead.
Update email template › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
kindWhich email the template is for: feedback — the message a website's contact form sends to its notification addresses; customer_welcome — what a visitor receives after registering an account on the website; customer_password_reset — the link a customer follows to choose a new password; customer_email_changed — what a customer receives at their previous address when they change the address they sign in with; customer_sign_in_code — the six-digit code a customer signs in with, sent to the address they typed; editorial_topics_proposed, editorial_article_drafted, editorial_article_published and editorial_failure — what the editorial desk sends the notification addresses of its plan when it has proposed topics, a draft is ready, an article has gone live, or something went wrong; order_placed — what a customer receives once their order is placed — and order_placed_owner — what the shop receives about it at its notification address; order_shipped — what a customer receives when part or all of their order is sent — order_cancelled — when the shop cancels it — and order_refunded — when the shop gives money of it back; return_requested_owner — what the shop receives at its notification address when a customer asks to return goods of their order — return_approved and return_declined — what the customer receives when the shop approves or declines that request; order_dispute_opened_owner — what the shop receives at its notification address when the customer's bank disputes a payment of an order at the payment provider; order_payment_request — what a customer receives when the shop places an order for them to pay online by its link; invoice_issued and credit_note_issued — what a customer receives when MooverApp issues the invoice of their order or a credit note that corrects it, the document whole in the email. The kind decides which placeholders the text may use. Required on Create and fixed afterwards.
display_nameThe template's name in the admin. A label for the people who edit it — the email's recipient never sees it.
subjectThe email's subject line, with {{placeholders}} as in body. It stays one line: a line break a placeholder's value brings in is sent as a space.
bodyThe email's text: plain text, where an empty line starts a new paragraph and {{placeholder}} is replaced by its value when the email is sent. There is no HTML to write — the platform sets the text in its own layout. A placeholder the kind does not have is replaced by nothing. A feedback template may use {{name}}, {{email}} and {{phone}} — what the visitor entered, empty when the form does not ask for it — {{message}}, what they wrote, {{page_title}}, the title of the contact page in the language of its view, and {{website_name}}. Every customer kind may use {{email}}, the address they sign in with, and {{website_name}}, and every one but customer_sign_in_code {{display_name}} — the customer's name, or their email address when they gave none; a customer_welcome template also {{account_url}}, the address of their account page, a customer_password_reset template {{reset_url}}, the one-time link to the page where they choose a new password, and a customer_email_changed template {{previous_email}} — the address they signed in with until the change, which the email is sent to, and the one {{display_name}} falls back to — and {{account_url}}; there {{email}} is the new address. A customer_sign_in_code template may use {{code}}, the six-digit code, and {{expire_minutes}}, how many minutes it works; there {{email}} is the address the code was sent to, which may have no account yet. A reset text that leaves {{reset_url}} out, and a sign-in code text that leaves {{code}} out, is not sent: the platform's own English email goes instead. Every editorial kind may use {{website_name}}. An editorial_topics_proposed template also {{topic_count}}, {{topics}} — the titles of the new topics, one per line — {{duplicates_skipped}}, {{topic_status}} (PROPOSED or CANDIDATE) and {{topics_url}}; an editorial_article_drafted template {{title}}, {{scheduled_time}} (YYYY-MM-DD HH:MM in the plan's time zone), {{verdict}}, {{score}}, {{issues}} — one per line — and {{cost}}, these four empty for a draft the AI did not write, and {{edit_url}}, {{generation_url}} and {{calendar_url}}; an editorial_article_published template {{title}}, {{public_url}}, the article's address on the website, {{edit_url}} and {{calendar_url}}; an editorial_failure template {{title}} and {{scheduled_time}}, empty when no single article is concerned, {{stage}} — the step that went wrong — {{reason}}, its code, {{message}}, {{issues}} and {{url}}, the run's page or the calendar. The editorial links lead into the admin, and are empty when the platform has no address of it configured. Both order kinds, order_placed and order_placed_owner, may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what was ordered, one product per line with its options, quantity and total — {{subtotal}} and {{total}} with their currency, {{shipping_total}} — the shipping's row, Shipping (Standard delivery): 5.00 USD, for between the subtotal and the tax — and {{shipping_method}}, the name of the way to ship, both empty when the order does not ship, {{tax}} — the tax on top of the prices, one line per rate, for between the subtotal and the total — and {{tax_included}} — the tax the prices hold, likewise, for after the total — each empty, its line left out, when the order has no such tax, {{payment_method}}, {{payment_instructions}}, what the view tells its customers about paying, {{shipping_address}}, one part per line, and {{billing_address}}, likewise, empty when the order is billed to the shipping address; an order_placed_owner template also {{customer_email}}, {{customer_phone}}, {{customer_tax_id}} — the customer's tax number where the website asks for one — and {{note}}, these three empty when the customer gave none. An order_shipped template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what this parcel holds, one product per line with its options and the quantity sent — {{carrier}}, {{tracking_number}} and {{tracking_url}}, each empty when the shop gave none, and {{shipping_address}}; an order_cancelled template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} as in order_placed, {{shipping_total}}, {{total}} and {{cancel_reason}}, empty when the shop gave no reason; an order_refunded template {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}} — what the refund gives back, one product per line with the units it takes back and the amount — {{tax}}, the tax it gives back, one line per rate, empty when none, {{shipping_total}}, the shipping it gives back, empty when none, {{total}}, what it gives back in all, and {{refund_reason}}, empty when the shop gave no reason. The three return kinds, return_requested_owner, return_approved and return_declined, may use {{website_name}}, {{order_number}}, {{customer_name}} and {{lines}} — the goods of the return, one product per line with its options and the units that come back; a return_requested_owner template also {{customer_email}} and {{return_reason}}, why the customer wants to send them back, and a return_declined template {{decline_reason}}, empty when the shop gave none. An order_dispute_opened_owner template may use {{website_name}}, {{order_number}}, {{customer_name}}, {{customer_email}}, {{dispute_amount}} — the amount disputed, with its currency — {{dispute_reason}}, the payment provider's code of why, such as fraudulent, empty when it named none, and {{dispute_respond_by}} — when the shop's evidence is due, a date and a time in UTC — empty when the provider named none. An order_payment_request template may use the placement's {{website_name}}, {{order_number}}, {{customer_name}}, {{lines}}, {{subtotal}}, {{shipping_total}}, {{shipping_method}}, {{tax}}, {{total}}, {{tax_included}} and {{payment_method}}, and {{payment_url}} — the page where the customer pays the order, which the email also carries as a button — and {{payment_due}}, when it is due to be paid, a date and a time in UTC. Both document kinds, invoice_issued and credit_note_issued, may use {{website_name}}, {{document_number}}, {{issue_date}} — the day it was issued, as the email's language writes a date — {{order_number}}, {{customer_name}}, {{seller}} and {{buyer}} — each one part per line, with its tax number — {{lines}} — one product per line with its SKU, quantity, unit price and amount, then the shipping — {{subtotal}}, {{tax}}, one line per rate, empty when none, {{total}} and {{footer_note}}; a credit_note_issued template also {{corrected_invoice_number}} and {{corrected_invoice_date}}, the invoice it corrects. A line made of placeholders that are all empty is left out. A text of any order kind that leaves {{order_number}} out, and of a document kind that leaves {{document_number}} out, is not sent: the platform's own English email goes instead.
is_defaultWhether this is the template the platform created for its kind — the one an email of that kind is sent from when the website has chosen no other. There is one per kind, only the platform sets it, and it cannot be deleted.
List email template views
What one view's email says instead of the template: its subject and text in that view's language. It works like every other overlay — optional fields, a fallback to the template, and overridden deciding which of them this view claims — with one addition: an Update of an overlay that does not exist yet creates it, so saving a view's text is one call whether or not it had one.
path Parameters
website_idId of the parent website.
email_template_idThe template this overlay belongs to. Fixed by the URL.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: create_time desc. Sortable: none — this collection serves its documented order only.
filterAIP-160 subset (§8). Filterable: none. A field outside the list is INVALID_ARGUMENT.
List email template views › Responses
One page of views.
This page of views, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create email template view
Gives a view its own subject and text for this template. The overlay is named after its view: pass the view's id as ?id=. A view that already has one answers ALREADY_EXISTS — update it instead, or skip this call altogether: an Update creates a missing overlay.
path Parameters
website_idId of the parent website.
email_template_idThe template this overlay belongs to. Fixed by the URL.
Create email template view › Request Body
overriddenThe fields this view actually overrides — subject, body, or both. A field not listed falls back along the view's fallback chain to the template itself, whatever value is stored for it here.
subjectThis view's subject line, with the template's placeholders.
bodyThis view's text, written like the template's body.
Create email template view › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe fields this view actually overrides — subject, body, or both. A field not listed falls back along the view's fallback chain to the template itself, whatever value is stored for it here.
subjectThis view's subject line, with the template's placeholders.
bodyThis view's text, written like the template's body.
Get email template view
What one view's email says instead of the template: its subject and text in that view's language. It works like every other overlay — optional fields, a fallback to the template, and overridden deciding which of them this view claims — with one addition: an Update of an overlay that does not exist yet creates it, so saving a view's text is one call whether or not it had one.
path Parameters
website_idId of the parent website.
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get email template view › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe fields this view actually overrides — subject, body, or both. A field not listed falls back along the view's fallback chain to the template itself, whatever value is stored for it here.
subjectThis view's subject line, with the template's placeholders.
bodyThis view's text, written like the template's body.
Delete email template view
Drops this view's own text: its emails go back to the template's, along the view's fallback chain.
path Parameters
website_idId of the parent website.
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete email template view › Responses
Deleted. No body (§7).
Update email template view
Writes what this view's email says. If the view has no overlay for the template yet, this creates it, so saving a view's text is the same call either way. Only the fields named in overridden are sent in this view — the others fall back to the template. The view itself must exist on the website; If-Match on an overlay that does not exist yet is ABORTED.
path Parameters
website_idId of the parent website.
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update email template view › Request Body
overriddenThe fields this view actually overrides — subject, body, or both. A field not listed falls back along the view's fallback chain to the template itself, whatever value is stored for it here.
subjectThis view's subject line, with the template's placeholders.
bodyThis view's text, written like the template's body.
Update email template view › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
email_template_idThe template this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe fields this view actually overrides — subject, body, or both. A field not listed falls back along the view's fallback chain to the template itself, whatever value is stored for it here.
subjectThis view's subject line, with the template's placeholders.
bodyThis view's text, written like the template's body.