You can use this API to get a list of available email templates in your MoEngage account
API Endpoint
GET https://api-0X.moengage.com/getAllEmailTemplates
The 'X' in the API Endpoint URL refers to the MoEngage Data Center (DC). MoEngage hosts each customer in a different DC. You can find your DC number (value of X) and replace the value of 'X' in the URL by referring to the DC and API endpoint mapping here.
Request Headers
Key | Sample value | Description |
---|---|---|
Authorization | Basic <User:Password> |
We accept Base 64 encoded Username:Password Here, |
Response
Important
Templates built using the Drag & Drop Editor are not provided in this response.
Sample successful response:
{
"templates":
[{
"updated_by": "user@email.com",
"template_name": "alpha",
"is_archived": false,
"builder_supported": false,
"updated_at": "2022-08-01 06:31:14.241000",
"image_url": "",
"editor": "Froala Editor",
"created_date": "2022-07-20 12:30:00.748000",
"template_id": "62d7f549467b2f1a56929e5a"
}],
"no_of_templates": "3"
}