Configuring SMS Templates

To configure a new SMS template:

  1. Go to Tools > Templates.
  2. Click Add New Template.
  3. Enter a Name for the template. Only lower case letters and underscores are allowed in this field. Do not use spaces in the template name.
  4. Select the Channel as SMS.
  5. Select the required Message Type for the SMS template. The available message types are:
    • Text
    • Flash
    • Binary
    • Unicode.
  6. Enter the message that you want to send to the users in the Message field.
  7. Click '+ Add Variable' option for adding variables for passing dynamic values. The same variable name that's generated automatically is to be used under params within the message block in the Messaging API v1
  8. By default Template Type is set to 'Regular' but provides an additional option named 'DLT'. The DLT option is to be used for passing the DLT Template ID in case you want to send messages to customers based in India. Else, for all other geographies, you can use the Regular option.
  9. Click Save. The template is created.

Sample Payload for SMS

{
    "deliverychannel":"sms",
    "message":{
        "template":"H1ENXXXMR",
        "parameters":{
            "parameter1":"<value>",
            "parameter2":"<value>",
            "parameter3":"<value>"
        }
    },
    "destination":[
        {
            "msisdn":[
                "4477xxxxxxxx"
            ]
        }
    ]
}