✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request POST \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/sms \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"basic_details": {
"message": "Hello {{UserAttribute['first_name']}}, your order is on its way!"
},
"meta_info": {
"created_by": "john.doe@example.com",
"template_id": "shipping_update_v1",
"template_name": "Shipping Update Template",
"template_version": "1"
}
}
EOF{
"external_template_id": "d05a44f0-a7cf-471a-bcb6-63054800a367"
}This API creates an SMS template in MoEngage. It helps you upload templates created outside the MoEngage ecosystem to MoEngage and use them for campaign creation.
curl --request POST \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/sms \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"basic_details": {
"message": "Hello {{UserAttribute['first_name']}}, your order is on its way!"
},
"meta_info": {
"created_by": "john.doe@example.com",
"template_id": "shipping_update_v1",
"template_name": "Shipping Update Template",
"template_version": "1"
}
}
EOF{
"external_template_id": "d05a44f0-a7cf-471a-bcb6-63054800a367"
}Documentation Index
Fetch the complete documentation index at: https://moengage-ios-release-notes-breaking-changes-doc-1961.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
The details of the SMS template to be created.
Success. This response is returned when the template is created successfully.
This field contains the unique ID assigned to the newly created template by MoEngage.
Was this page helpful?