Wacap icon

Wacap

Interact with WhatsApp using Wacap Docker API

Message → Send Media

AI-generated

Summary

Sends media to a WhatsApp contact or group via the Wacap Docker API.

Inputs

  • sessionId (required) — Session ID/name
  • to (required) — Phone number (without + or spaces) or group ID
  • mediaType — Type of media to send (image/jpeg, image/png, video/mp4, audio/mpeg, application/pdf, application/msword, application/vnd.ms-excel, or custom)
  • customMimetype — Custom mimetype for the media (shown when mediaType is custom)
  • mediaSource — Source of the media file (url or base64)
  • mediaUrl (required) — URL of the media file (shown when mediaSource is url)
  • base64Data (required) — Base64 encoded media data (shown when mediaSource is base64)
  • caption — Caption for the media
  • fileName — File name for documents

Output shape

The JSON response from the Wacap Docker API, containing status and media delivery details.

Uses a POST request to /api/send/media. The mimetype is derived from mediaType, or customMimetype if mediaType is custom. The media payload (url or base64) is set based on mediaSource. Caption and fileName are included optionally. Error handling follows the node's continueOnFail setting.

Discussion