Skip to main content
POST
/
custom-templates
/
sms
Create SMS Template
curl --request POST \
  --url https://api-0{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" }

Rate Limit

The rate limit is 100 RPM. You can upload a maximum of 100 templates per channel.

FAQs

Yes, you can create multiple templates with the same name, provided they have different versions.

Authorizations

Authorization
string
header
required

Basic Authentication using Workspace ID as username and the 'Campaign report/Business events/Custom templates' API key as the password.

Body

application/json

The details of the SMS template to be created.

basic_details
object
required

This field contains the basic details of the SMS template.

meta_info
object
required

This field contains information about the template being created.

Response

Success. This response is returned when the template is created successfully.

external_template_id
string<uuid>

This field contains the unique ID assigned to the newly created template by MoEngage.