Overview
Sends a file to the contact. WhatsApp picks the icon from the extension and the name you provide. Thecontent.type field will be DOCUMENT.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send a PDF, a spreadsheet or any file up to 100 MB
content.type field will be DOCUMENT.
{
"recipient": { "identifier": "5511999999999" },
"content": {
"type": "DOCUMENT",
"attachments": [
{
"url": "https://yourstore.com/invoice.pdf",
"fileName": "invoice.pdf",
"caption": "Here is your invoice"
}
]
}
}
| Rule | Value |
|---|---|
| Size | up to 100 MB |
| Types | PDF, Word, Excel, PowerPoint, text |
| Caption | up to 1024 characters |
fileName | with the extension — it is what defines the icon the customer sees |
fileName goes with the extension, like invoice.pdf. There is a known defect in that field on the
Z-API compatibility layer today: with the extension the file arrives as invoice.pdf.pdf, and without it
it arrives as invoice.null.