Templates
Create a template
Creates a new template from HTML, MJML, or plain-text content. MJML is compiled to HTML when the template is saved.
POST
cURL
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
At least one of html, mjml or text must be supplied. Supplying both html and mjml in the same request is rejected - mjml content will be rendered to html. Providing raw html will override any mjml content stored on the template.
Response
OK
Opaque version, changing on every update. Pass it back as the version of an update to have the update rejected if the template has been modified in the meantime.