Skip to content

/chat/send/template - sent a template message return 404 page not found #335

Description

@gyferlim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions