Create an email template
post/mail/templates
Create an email template. Variables {{name}} and {{name|fallback}}, conditionals {{#if}} {{else}}, loops {{#each}} and partials {{> name}}; values are escaped for HTML.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
campaigns:write- Graphql
Mutation.campaignsMailTemplateCreate- Sdk
mail.templates.create- Cli
mail template-create
Request bodyapplication/json, required
- namestringrequiredAt most 120 characters.
- kindstringOne of: transactional, marketing, partial.
- languagestringen, dv, ar, ...; sets the direction and footer words of group mail At most 20 characters.
- subjectstringAt most 998 characters.
- htmlstringAt most 1000000 characters.
- textstringAt most 1000000 characters.
- testDataobjectSample values used by the preview
- notestringAt most 200 characters.
- sharestringorganization: every project of the organization can use it One of: project, organization.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring