Wasapress icon

Wasapress

Interact with Wasapress WhatsApp Marketing API

Send Document

AI-generated

Summary

Send a document file to a specified WhatsApp number with optional caption, filename, and pinning duration.

Inputs

  • Number (required) — The WhatsApp number including country code without '+' or spaces, to which the document will be sent.
  • File URL (required) — The URL of the document file to send.
  • Caption — Optional caption text to include with the document.
  • Filename — Optional filename to display for the document.
  • Pin Time — Optional time in seconds to pin the message; leave blank if no pinning is needed.

Output shape

a single JSON object containing the API response body merged with the HTTP status code

The output object includes all response properties from the Wasapress API along with a 'statusCode' field indicating the HTTP status code returned by the API. The operation batches requests if configured in node settings, but each execution returns one response per input item.

Examples

Example 1: Sending a PDF document with caption and filename to a WhatsApp number

Provide the target WhatsApp number, the file URL of the document, an optional caption describing the document, and optionally set a filename displayed in WhatsApp. Optionally specify pin time to pin the message.

Discussion