Base64 data URLs
Many media endpoints expect a data URL:| Media | Prefix |
|---|---|
| JPEG image | data:image/jpeg;base64, |
| PNG image | data:image/png;base64, |
| MP4 video | data:video/mp4;base64, |
| PDF document | data:application/pdf;base64, |
| OGG/Opus audio | data:audio/ogg;base64, |
Direct URLs
POST /send/mediaurl downloads media from a URL and sends it. The server must be able to reach the URL. If the URL is private, sign it or proxy it through your backend.
Local files
Call playback uses a file path on the WaGo server:Downloading received media
Media download endpoints reconstruct media from webhook metadata:POST /message/download/imagePOST /message/download/videoPOST /message/download/documentPOST /message/download/audioPOST /message/download/sticker
url, directPath, mediaKey, mimetype, fileEncSHA256, fileSHA256, and fileLength.

