Send Document
Endpoints
Send Document
Send a document message with an optional filename and caption to an existing contact.
POST
Send Document
Documentation Index
Fetch the complete documentation index at: https://docs.flowapt.com/llms.txt
Use this file to discover all available pages before exploring further.
Basic Usage
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
phone_number | string | Yes | Recipient phone number with country code |
message_type | string | Yes | Must be "document" |
media_url | string | Yes | Publicly accessible URL to the document |
filename | string | No | Display filename shown to the recipient |
caption | string | No | Optional caption |
context_message_id | string | No | WhatsApp message ID to reply to |
Response
Success (200)
Error: Missing Required Field (400)
Integration Example
Media URLs
Ensure the document URL is publicly accessible. The API needs to download the
file before uploading to Meta.
Authorizations
Bearer token for authentication. Format: Bearer YOUR_BEARER_TOKEN
Body
application/json
Recipient phone number with country code
Example:
"+27123456789"
Must be "document"
Available options:
document Example:
"document"
Publicly accessible URL to the document file
Example:
"https://example.com/invoice.pdf"
Display filename shown to the recipient
Example:
"Invoice_2025.pdf"
Optional caption for the document
Example:
"Please find your invoice attached"
WhatsApp message ID to reply to
Example:
"wamid.HBgLMjc4MTIzNDU2NzgVAgASGBQzRUI..."

