You can send messages only if the user session is already active; otherwise, the messages will fail. We recommend sending a approved template message the first time you contact users. Once the session is open, you can send unlimited messages via these APIs. For more info click here
Body
Specifies the recipient’s phone number in international format (e.g.,
“1xxxxxxxxxx”).
This is the unique identifier associated with the sender’s phone number given
by WhatsApp. Find the Phone ID on the Zixflow WhatsApp Settings page next to
the number. Whatsapp
Settings
To send list interactive messages keep message type as “interactive”
A Location Object consists of the following fields and formatting options:
To send replay bytton interactive messages keep message type as “button”
Optional.
This contains the header content displayed on top of a message.
The header object contains the following fields:
document: Required if type is set to document. Contains the media object with the document.
image: Required if type is set to image. Contains the media object with the image.
video: Required if type is set to video. Contains the media object with the video.
text: Required if type is set to text. The text for the header. Formatting allows emojis, but not markdown. Maximum length: 60 characters.
Supported interactive message type by header type:
text - for List Messages, Reply Buttons, and Multi-Product Messages
video - for Reply Buttons.
image: for Reply Buttons.
document - For Reply Buttons.
Required.
The body content of the message. Emojis and markdown are supported. Links are supported.
Maximum length: 1024 characters.
Required.
The body content of the message. Emojis and markdown are supported. Links are supported.
Maximum length: 1024 characters.
The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.
The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.
The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.
Required.
The body of the message. The text field for the body object supports Emojis and markdown.
Maximum length: 1024 characters.
Required.
The body content of the message. Emojis and markdown are supported. Links are supported.
Maximum length: 1024 characters.
Optional.
An object with the footer of the message.Emojis and markdown are supported.
Maximum length: 60 characters.
Required if the footer object is present.
The footer content of the message. Emojis and markdown are supported. Links are supported.
Maximum length: 60 characters.
The action you want the user to perform after reading the message.
If the “linkWithRecord” is set to true, the source from which the WhatsApp
message is sent should be mentioned; otherwise, it defaults to API.
Specify whether to associate the current message with a record and display it
in the inbox. Set it to “true” for linking with a record; otherwise, it
defaults to “false.”
(Optional) Specify the URL where the user’s report and deliveries should be
delivered.
Indicates whether to wait for the submission status. Set it to “true” if you
want to wait for the submission status; otherwise, it defaults to “false.”
Response
Indicates whether the call was successful. true if successful, false if not.
success or error response message