WA Client
GET

Get Media

Download media by storage path or by chat_id + message_id.

API endpoint
https://waclient.com/api/get_media
Example:
curl -X GET \
  'https://waclient.com/api/get_media' \
  -G \
  --data-urlencode 'path=6A4B02A1XXXX/media/1750000000000_image.jpg' \
  --data-urlencode 'instance_id=6A4B02A1XXXX' \
  --data-urlencode 'access_token=EMCUH3NQQK8YXXXX'
Response
{
    "status": "success",
    "message": "Success",
    "data": {
        "path": "6A4B02A1XXXX/media/1750000000000_image.jpg",
        "url": "https://storage.waclient.com/6A4B02A1XXXX/media/1750000000000_image.jpg",
        "mime_type": "image/jpeg"
    }
}
ParameterDescription
pathRelative storage path (instance_id/media/...)
chat_idAlternative: download from a message (with message_id) (Optional)
message_idUsed with chat_id (Optional)
as_jsonReturn base64 JSON instead of binary (Optional)
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc