Create

Create custom template

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

x-monite-versionstringRequired

Request

This endpoint expects an object.
body_templatestringRequired>=1 character
Jinja2 compatible string with email body
namestringRequired1-128 characters
Custom template name
subject_templatestringRequired>=1 character
Jinja2 compatible string with email subject
typeenumRequired
Document type of content
is_defaultbooleanOptionalDefaults to false
Is default template
languageenumOptional
Lowercase ISO code of language

Response

Successful Response
idstringformat: "uuid"
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<=4 characters
Lowercase ISO code of language
namestring<=128 characters
Name of the template
subject_templatestring<=2048 characters
Jinja2 compatible email subject template
typestring
Document type of content

Errors

401
Post Mail Templates Request Unauthorized Error
422
Post Mail Templates Request Unprocessable Entity Error
429
Post Mail Templates Request Too Many Requests Error