WapiZap Chat icon

WapiZap Chat

Manage WhatsApp chats via WapiZap API

Download Document

AI-generated

Summary

Download a document attached to a WhatsApp message

Inputs

  • apiVersion — Which API version to use (v2 recommended or v1 compatible)
  • instanceName (required) — Name of the WhatsApp instance
  • messageId (required) — Message ID containing the media to download

Output shape

a single object representing the downloaded document

Returns the document data (file URL or binary content); errors are thrown if the message ID is invalid or the document cannot be retrieved

Examples

Example 1: Download a PDF file from a specific message

Set API Version to V2, provide the Instance Name and the Message ID; the node outputs the PDF as a downloadable file

Example 2: Retrieve a video attachment

Use the same inputs; the operation returns the video file associated with the given message ID

Example 3: Get an image from a chat

Configure the node with the image's Message ID; the operation returns the image file

Discussion