Messages
Send document
Send documents (PDF, DOC, XLS, etc) via WhatsApp
POST
Overview
Method for sending documents. The file extension must be specified in the URL path (e.g.,/send-document/pdf). You can send via URL or Base64.
The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.
File size limits and supported formats follow WhatsApp policies. See the official WhatsApp documentation for details.
Authorizations
Secret Key generated in the Hub Message Security panel
Path Parameters
File extension (e.g. pdf, docx, xlsx)
Example:
"pdf"
Body
application/json
Recipient phone number (country code + area code + number)
Example:
"5511999999999"
Document URL or Base64 data
File name
Document description
ID of an existing message to reply to
Delay in seconds before sending (1-15)
Required range:
1 <= x <= 15