Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Message → Send Document

AI-generated

Summary

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.

Links

Discussion