Send Whatsapp Document Message
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.
To send document messages keep message type as “document”
A Document Object consists of the following fields and formatting options:
The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.
Optional.
Describes the specified image, document, or video. Do not use it with audio or sticker media.
Optional.
Describes the filename for the specific document. Use only with document media.
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.”
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