Send image, video, audio or document
send_mediaSend an image, video, audio, voice note, document, or sticker from a public URL to a WhatsApp number or group. Use it to deliver files and media to opted-in recipients.
Instructions
Sends a media file to a WhatsApp number or group. The file must be reachable at a public URL. Types: image, video (both accept a caption in caption), audio (file), ptt (voice message bubble), document (needs doc_name), sticker, ptv (round video note). Use when the user wants to deliver a file, picture or voice note. Only message people who have agreed to hear from you (opt-in). ZapZap uses the WhatsApp Web/QR channel, which is not Meta's official API: unsolicited or repetitive messages get reported and WhatsApp can restrict or ban the number. Never send bulk or unrequested messages, and confirm text and recipient with the user first if there is any doubt. A sent message cannot be un-sent reliably, so do not retry a send after a timeout without checking the chat history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Media type. | |
| number | Yes | Recipient phone with country code, digits only (e.g. 5511999999999 for Brazil). For groups use the group JID ending in @g.us. | |
| caption | No | Caption (image and video only). | |
| doc_name | No | File name shown to the recipient; required when type is document. | |
| file_url | Yes | Public URL of the file. | |
| digitando | No | Show an automatic 'typing...' indicator before sending (default on; reduces block risk). Leave unset unless speed matters. | |
| instance_id | No | ZapZap instance id (a connected WhatsApp number). Optional when ZAPZAP_INSTANCE_ID is configured; otherwise call list_instances first. |