v1

latestOpenAPI 3.0.32026-07-268345159.5 KB

Document message

Send a V3 document message to a WhatsApp user using either a media ID or a hosted link

post/message

Request body

messaging_product'whatsapp' required

The messaging product used (currently only whatsapp)

recipient_type'individual' required

The type of recipient (currently only individual)

tostring required

Destination phone number in E.164 format

type'document' required

Message type (document for this API)

Example request

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "917506080480",
  "type": "document",
  "document": {
    "id": "1021671987023570",
    "link": "https://raw.githubusercontent.com/dwyl/english-words/master/words.txt",
    "caption": "Please find the document attached",
    "filename": "demo.txt"
  }
}

Response

Successful response

statusstring required

Success message