WapiZap Message icon

WapiZap Message

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

Send Document

AI-generated

Summary

Send a WhatsApp document message from a specified WapiZap instance to a given phone number with an optional caption and custom file name.

Inputs

  • Instance Name (required) — Specifies the WapiZap instance from which to send the document message.
  • To (required) — Phone number to send the document message to.
  • Media URL (required) — URL of the document file to be sent.
  • Caption — Optional caption text for the document.
  • Additional Options — Optional settings including 'Delay (Ms)' to pause before sending, and 'File Name' to specify a custom document file name.

Output shape

a single record

Returns a single JSON object representing the result of the sending operation, including success or failure information. Errors are captured if 'Continue On Fail' is enabled; otherwise, they throw exceptions.

Examples

Example 1: Send a PDF document with a custom file name and caption to a WhatsApp number

Set 'Instance Name' to the source instance, specify the target phone number in 'To', provide the document's URL in 'Media URL', enter a caption if desired, and optionally provide a custom 'File Name'.

Links

Discussion