curl -X POST "https://wuzapiserver/chat/send/template" -H "accept: application/json" -H "token: mypersonaltoken" -H "Content-Type: application/json" -d "{"Id":"ABCDABCD1234","Phone":"601234567890","Content":"Message title","Footer":"Text below title, above buttons","Buttons":[{"DisplayText":"Yes","Type":"quickreply"},{"DisplayText":"No","Type":"quickreply"},{"DisplayText":"Visit Site","Type":"url","Url":"https://www.google.com"},{"DisplayText":"Callme","Type":"call","PhoneNumber":"601234567890"}],"ContextInfo":{"StanzaId":"EDCBABCDEDCBABCDEDCBA","Participant":"60123456789@s.whatsapp.net"}}"
For easier reading, here is the request json body
{
"Id": "ABCDABCD1234",
"Phone": "601234567890",
"Content": "Message title",
"Footer": "Text below title, above buttons",
"Buttons": [
{
"DisplayText": "Yes",
"Type": "quickreply"
},
{
"DisplayText": "No",
"Type": "quickreply"
},
{
"DisplayText": "Visit Site",
"Type": "url",
"Url": "https://www.google.com"
},
{
"DisplayText": "Callme",
"Type": "call",
"PhoneNumber": "601234567890"
}
],
"ContextInfo": {
"StanzaId": "EDCBABCDEDCBABCDEDCBA",
"Participant": "60123456789@s.whatsapp.net"
}
}
No matter what I did, I only get 404 PAGE NOT FOUND message.
Is the chat/sent/template working, or I did a mistake somewhere that I didn't realize ?
Thank you for your time and work.
curl -X POST "https://wuzapiserver/chat/send/template" -H "accept: application/json" -H "token: mypersonaltoken" -H "Content-Type: application/json" -d "{"Id":"ABCDABCD1234","Phone":"601234567890","Content":"Message title","Footer":"Text below title, above buttons","Buttons":[{"DisplayText":"Yes","Type":"quickreply"},{"DisplayText":"No","Type":"quickreply"},{"DisplayText":"Visit Site","Type":"url","Url":"https://www.google.com"},{"DisplayText":"Callme","Type":"call","PhoneNumber":"601234567890"}],"ContextInfo":{"StanzaId":"EDCBABCDEDCBABCDEDCBA","Participant":"60123456789@s.whatsapp.net"}}"
For easier reading, here is the request json body
No matter what I did, I only get 404 PAGE NOT FOUND message.
Is the chat/sent/template working, or I did a mistake somewhere that I didn't realize ?
Thank you for your time and work.