Flow Template
Payload
{
"recipient_type": "individual",
"to": "xxxxx",
"type": "template",
"template": {
"name": "test_sinch",
"language": {
"policy": "deterministic",
"code": "en"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "https://www.xxx.com/image.jpeg"
}
}
]
},
{
"type": "button",
"index": "0",
"sub_type": "flow",
"parameters": [
{
"type": "text",
"text": "NN011902004047"
}
]
}
]
},
"metadata": {
"messageId": "xxxxx",
"callbackDlrUrl": "http://xxx.com",
"media": {
"mimeType": "image/jpeg"
}
}
}
Note: 'type' field will have the value as 'template', 'subType' field will have the value as 'flow', 'templateID' field refers to template name which should be passed in small characters only and value must not exceed 100 characters, 'button' object will have 'index' field which can have values between 0-2 depending on the number of Quick Reply buttons.
Note: Callback URL is an optional parameter. Please use when you want to change the default URL(configured through smartta). It will only change the domain name, other parameters will be same as configurated in smartta.
Additionally, messageId is also an optional parameter used for identification of the message and must not exceed 100 characters.