WAClient
GET

Get Media

Download and decrypt media. Use a stored path, or chat_id + message_id from a webhook (decrypts .enc WhatsApp media using the session keys). Instance must be connected.

API endpoint
https://api.waclient.com/get_media
Example:
curl -X GET \
  'https://api.waclient.com/get_media' \
  -G \
  --data-urlencode 'path=6A4B02A1XXXX/media/1750000000000_image.jpg' \
  --data-urlencode '[email protected]' \
  --data-urlencode 'as_json=true' \
  --data-urlencode 'instance_id=6A4B02A1XXXX' \
  --data-urlencode 'access_token=EMCUH3NQQK8YXXXX'
Response
{
    "status": "success",
    "message": "Success",
    "data": {
        "chat_id": "[email protected]",
        "message_id": "ACD675B82EF67ACCABE4E100AC0928B6",
        "mime_type": "audio/ogg; codecs=opus",
        "base64": "...",
        "size": 5035
    }
}
ParameterDescription
pathRelative storage path (instance_id/media/...) (Optional)
chat_idRequired with message_id. Prefer phone JID (remoteJidAlt) when the webhook uses @lid. JID with @ — Phone: [email protected]. Group: 120363…@g.us. Channel: 120363…@newsletter. (Optional)
message_idMessage key.id from the webhook payload (Optional)
as_jsonReturn base64 JSON instead of binary (useful for .ogg audio) (Optional)
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc