Send a message
Sends one WhatsApp message to one recipient. The type field selects
the message kind and decides which other fields apply:
type |
When to use | Chat window required |
|---|---|---|
template |
Approved WhatsApp templates. Works at any time. | No |
text, image, document, audio, location |
Free-form messages inside an open conversation. | Yes |
interactive |
Reply buttons or a list menu inside an open conversation. | Yes |
Media URLs (url) must be publicly accessible.
For templates, only pass the header object when the template has a
header, only pass body when the template has body variables, and only
pass buttons when a button carries a variable (for example a
dynamic Visit website URL).
POST
https://api.zacx.io/v1/message/sendAuthorisation
Request bodyJSON
One of the following:
Returns
200
The message was accepted. Keep the returned message id to poll delivery status.
400
One or more parameters are missing or invalid.