Send a document via WhatsApp. The document must be accessible via a public URL.
Important Notes:
API key authentication. Include your API key in the Authorization header as Bearer YOUR_API_KEY. API keys can be created from the dashboard.
Recipient phone number in international format (E.164)
1"+1234567890"
Public URL of the document file
1"https://example.com/document.pdf"
ID of the WhatsApp account to send from. Must be in 'connected' status.
1"wa_abc123def456"
Optional caption text for the document
1024"Here is the document"
Optional filename for the document
255"report.pdf"