Actions90
- Business Profile Actions
- Call Actions
- Flow Actions
- Media Actions
- Message Actions
- Phone Number Actions
- QR Code Actions
- System Actions
- Template Actions
- User Actions
Media → Send Document
AI-generatedSummary
Send a document media message to a specified recipient phone number on WhatsApp.
Inputs
- To (required) — Recipient phone number with country code, without the '+' sign.
- Media Source (required) — Choose between providing a publicly accessible URL or a previously uploaded media ID for the document to send.
- Media URL (required) — The publicly accessible URL of the document file (required if Media Source is URL).
- Media ID (required) — The ID of the uploaded document media (required if Media Source is Media ID).
- Caption — Optional caption text to include with the document, up to 1024 characters.
- Filename — Filename to display for the document in the message.
- Options — Additional options such as replying to a specific message ID (quoted reply) or including custom tracking data for webhook responses.
Output shape
a single message object representing the sent document message
The operation sends the document as a WhatsApp media message to the specified recipient and returns the message details. Optional caption and filename appear with the document. If replyToMessageId is provided, the message is sent as a reply to that message.