Create email template
Creates a template as a draft. Nothing sends it until it's published.
POST
Creates a template as a draft. Nothing sends it until it's published.
header
AuthorizationBearer <Relevate API key>Relevate API key scoped to the operation's product and environment.
application/json- body
A new template's draft.
alias?|The name to send it by, like password-reset: lowercase letters,
numbers and dashes. Unique in the project.
html*stringThe email's HTML, up to 500,000 characters.
message_class*stringservice or marketing.
name*string2 to 120 characters; shown in the dashboard.
preheader?|The preview line inboxes show after the subject, up to 200 characters.
sender_identity_id?|The sending identity it's sent from; publishing needs one.
subject*stringUp to 200 characters.
text?|The plain-text version, up to 200,000 characters. Made from the HTML when left out.
variables?array<>|The variables it takes from code, as reads return them.
The new draft.
curl -X POST 'https://api.relevate.app/email/templates' \
-H 'Content-Type: application/json' \
-d '{
"html": "string",
"message_class": "string",
"name": "string",
"subject": "string"
}'Example Response
Empty