WapiZap Message icon

WapiZap Message

Send WhatsApp messages - Text, images, videos, audio, documents, and more

Send Document

AI-generated

Summary

Sends a document over WhatsApp using the selected instance and configuration.

Inputs

  • apiVersion — Selects the WhatsApp API version (v1 or v2); v2 is recommended.
  • instanceName (required) — Name of the WhatsApp instance to use for sending the message.
  • to (required) — Target phone number in international format (e.g., 5511999998888).
  • mediaUrl (required) — Direct URL to the media file (image, video, document, etc.).
  • caption — Optional caption for the media file.
  • delay — Delay in milliseconds before sending the message.
  • fileName — Custom filename for the document being sent.

Output shape

array of result objects

Each element corresponds to a processed input item; on success it contains the WhatsApp response payload, on failure it may include an error description.

Examples

Example 1: Send a PDF to a contact

Set operation to Send Document, provide To, Media URL, optional Caption, choose API Version V2, select instance name, enable delay 500 ms, set fileName.

Discussion