Actions137
- Business Actions
- Add Product to Collection
- Add Tag to Chat
- Create Collection
- Create Product
- Create Tag
- Delete Collection
- Delete Product
- Delete Tag
- Edit Collection
- Edit Tag
- Get Available Categories
- Get Business Profile
- Get Product
- Get Products By Phone
- Get Tag Colors
- List Collection Products
- List Collections
- List Products
- List Tags
- Remove Product From Collection
- Remove Tag From Chat
- Save Catalog Config
- Set Business Hours
- Set Categories
- Chat Actions
- Community Actions
- Contact Actions
- Event Actions
- Group Actions
- Instance Actions
- Interactive Message Actions
- Message Actions
- Message Action Actions
- Message Status Actions
- Newsletter Actions
- Poll Actions
- Privacy Actions
- Profile Actions
- Proxy Actions
- Queue Actions
- Status/Story Actions
- Webhook Actions
Message → Send Document
AI-generatedSummary
Send a document message to a recipient via the ZedaAPI service
Inputs
- phone (required) — Recipient phone number with country code
- delayMessage — Delay in seconds before sending (0 = API default 1-3s random)
- document (required) — Document URL or base64‑encoded data
- fileName — Suggested file name for the document
- mimeType — MIME type of the document (e.g., application/pdf)
- caption — Optional caption text for the message
- additionalFields — Collection of extra options such as typing indicator, ephemeral duration, mentions, etc.
- requestOptions — Advanced request settings including proxy, timeout, SSL verification, and batching configuration
Output shape
a single record representing the sent message
Typically includes the message identifier, status, and any returned metadata; errors produce an error envelope but no successful body.
Examples
Example 1: Send a PDF invoice to a contact
Set Phone to the recipient number, Document to the PDF URL, MIME Type to "application/pdf", and optionally provide a File Name and Caption.
Example 2: Schedule a document for later delivery
Provide a Scheduled For timestamp; optionally set Delay Message to 0 to use the API's default delay.
Example 3: Send with typing indicator and ephemeral duration
Add delayTyping=5 and duration=86400 within Additional Fields to show a typing indicator for 5 seconds and make the message disappear after 24 hours.