send_whatsapp_media
Send image, video, audio, or document files to a WhatsApp number via publicly accessible URL. Includes optional caption.
Instructions
Send a media message (image, video, audio, or document) to a recipient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number in international format without spaces or '+' (e.g., '254712345678'). | |
| url | Yes | Publicly accessible URL of the media file to send. | |
| type | No | Type of media being sent: 'image', 'video', 'audio', or 'document'. Defaults to 'image'. | |
| caption | No | Optional text caption for image, video, or document messages. | |
| fileName | No | Optional display name for document messages. | |
| mimetype | No | Optional recommended MIME type for the media file. | |
| sessionId | No | Optional WhatsApp session identifier to send from. Defaults to 'default'. |