v1

latestOpenAPI 3.0.02026-07-2483164186.3 KB
Outgoing Messages

Send Whatsapp Document Message

Send Whatsapp Document Message

post/whatsapp/message/document

Request body

fromstring phone

The phone number from which the message is sent, with the country code.

tostring phone

The phone number to which the message is sent, with the country code. Required when not using groupId.

groupIdstring

The unique identifier of the WhatsApp group to send the message to. Mutually exclusive with "to".

messageIdstring

Message ID (UUID v4) to be used for the message. If not provided, a random UUID v4 will be generated

Example request

{
  "from": "+919999999999",
  "to": "+919999999999",
  "groupId": "grp_XYZ",
  "messageId": "uuid-v4",
  "content": {
    "mediaUrl": "https://example.com/image.jpg",
    "caption": "This is a caption",
    "filename": "Example File Name"
  }
}