Skip to main content
Version: 2.0

Dynamic Text Template

Index of dynamic variable passed in parameter attributes should be in the same sequence as in whitelisted template.

Example:

Payload

{
"recipient_type": "individual",
"to": "xxxxx",
"type": "template",
"template": {
"name": "welcome_test",
"language": {
"policy": "deterministic",
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Hi"
},
{
"type": "text",
"text": "10000"
}
]
}
]
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "xxxxx",
"callbackDlrUrl": "http://xxx.com"
}
}

Note: 'type' field will have the value as 'template' and 'templateID' field refers to template name which should be passed in small characters only and value must not exceed 100 characters. Also, the value in 'callbackDlrUrl' will be honoured only if default DLR URL is configured for your business.

Note: Callback URL is an optional parameter . Please use when you want to override the default URL(configured through smartta). The provided URL can override the default configuration, including usage within the same domain, while retaining other parameters as configured in Smartta unless explicitly changed.
Additionally, messageId is also an optional parameter used for identification of the message and must not exceed 100 characters.