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, 'button' object will have 'index' field which can have values between 0-2 depending on the number of Quick Reply buttons.
Note: Calback URL is a optional paramter . Please use when you want to change the default URL(configured through smartta). It will only chnage the domain name othere paratemters will be same as configurated in smartta.