This API creates an email template in MoEngage. You can use this API to upload templates created outside the MoEngage ecosystem to MoEngage and use them for campaign creation on the MoEngage dashboard.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
This field contains the name of the template and would be used for identifying the template. You can look for the template created using this API in the second step of campaign creation in the 'My Saved Templates' tab using this name.
Note:
5 - 50"End_Of_Season_Sale_Template"
This field contains the message body of the email. This is where you define the email template being created. The HTML tag and BODY tag (with text/tags) are mandatory. The SCRIPT tag is not allowed.
"<!DOCTYPE html><html><body><p>Content</p></body></html>"
This field contains information about the source of template creation. This can be the name of the email partner.
Note: Only alphanumerics, spaces, and underscores are allowed in this field.
"Partner"
This field contains the subject of the email campaign.
"End of Season Sale!"
This field contains the attachments to be included in the email.
Note:
10This field contains the name displayed that is displayed in the inboxes of your recipients. Sender names are one of the first things people see when you send them an email.
"Your Brand Name"
This field contains information about who created the template.
Note: Only alphanumerics, spaces, and hyphens are allowed in this field. This field can contain the email ID of the creator as well. The email id should be in the right format and a valid one.