Create

POST
/mail_templates
Create custom template

Headers

Auth
AuthorizationstringRequired
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-monite-versionstringRequired

Request

This endpoint expects an object.
body_templatestringRequired
Jinja2 compatible string with email body
namestringRequired
Custom template name
subject_templatestringRequired
Jinja2 compatible string with email subject
typeenumRequired
Document type of content
is_defaultbooleanOptional
Is default template
languageenumOptional
Lowercase ISO code of language

Response

This endpoint returns an object.
idstring
ID of email template
created_atdatetime
Template created date and time
updated_atdatetime
Template updated date and time
body_templatestring
Jinja2 compatible email body template
is_defaultboolean
Is default template
languagestring
Lowercase ISO code of language
namestring
Name of the template
subject_templatestring
Jinja2 compatible email subject template
typestring
Document type of content

Errors