templates
Add a new template
Add a new template to be used in the e-mail campaigns. The template's parts (subject, html and text) can contain tags which are used to personalize the campaign's content. The tag names are defined between two curly brackets e.g. {{name}}.
post/templates
Request body
Example request
{
"name": "HelloWorld",
"subject_part": "Welcome {{name}} to mailbadger.io!",
"html_part": "<div>Hello {{name}}, welcome to mailbadger.io</div>",
"text_part": "Hello {{name}}, welcome to mailbadger.io"
}Response
OK
Example response
{
"id": 111,
"name": "Welcome",
"subject_part": "Welcome to Mailbadger {{name}}!",
"html_part": "<div>Hello {{name}}, welcome to mailbadger.io</div>",
"text_part": "Hello {{name}}, welcome to mailbadger.io"
}