i need to send post call to webhook url with postback button and how to do this. i am trying this but getting 412 error.
{
“session”: {
“new”: true
},
“message”: {
“type”: “template”,
“payload”: {
“template_type”: “button”,
“text”: “Children”,
“subText”: “Button Template Description”,
“buttons”: [{“type”:“postback”,“title”:“Children”,“payload”:“Children”}]
}
},
“from”: {
“id”: “my-secret-id”
},
“mergeIdentity”: true,
“preferredChannelForResponse”: “rtm”
}
@hasanali50923
How are you exactly trying this? What is the bot, node, webSDK set up etc?
The postback button sends a message to the platform. If you use a button template you can call a URL but by nature that is a get-call.
If you tell us the use case we may be able to suggest further.