Send Zalo message Consulting button
HTTP request
curl --location 'https://rest.esms.vn/MainService.svc/json/SendZaloFollowerMessage_V5_post_json/' \
--header 'Content-Type: application/json' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"CallbackUrl": "{{CallbackUrl}}",
"RequestId": "{{RequestId}}",
"Payload": {
"recipient": {
"user_id": "{{user_id}}"
},
"message": {
"text": "{{text}}",
"attachment": {
"type": "template",
"payload": {
"buttons": [
{
"title": "{{title}}",
"payload": {
"url": "{{url}}"
},
"type": "oa.open.url"
},
{
"title": "{{title}}",
"type": "oa.query.show",
"payload": "{{payload}}"
},
{
"title": "{{title}}",
"type": "oa.query.hide",
"payload": "{{payload}}"
},
{
"title": "{{title}}",
"type": "oa.open.sms",
"payload": {
"content": "{{content}}",
"phone_code": "{{phone_code}}"
}
},
{
"title": "{{title}}",
"type": "oa.open.phone",
"payload": {
"phone_code": "{{phone_code}}"
}
}
]
}
}
}
}
}'Parameter
Type
Required
Description
Parameter
Type
Description
Last updated