whatsapp_upload_media
Upload a media file from a publicly accessible URL to WhatsApp and receive a media ID for sending media messages. Supports images, videos, audio, and documents.
Instructions
Upload a media file from a URL to WhatsApp and get back a media ID. The media ID can then be used to send media messages. Supports images (JPEG, PNG, WebP), videos (MP4, 3GPP), audio (AAC, MP4, MPEG, AMR, OGG), and documents (PDF, Word, Excel, PowerPoint, plain text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional filename for the uploaded file (used for documents) | |
| media_url | Yes | Publicly accessible URL of the media file to upload to WhatsApp | |
| mime_type | Yes | MIME type of the media file, e.g. image/jpeg, video/mp4, audio/ogg, application/pdf |