Download Media

Supported & Tested

Retrieve direct download URLs for media attachments linked to incoming messages.

POSThttps://api.waplix.io/api/v1/messages/download-media
Authentication
Authorization: Bearer YOUR_API_KEY
Parameters Specification
instance_id
stringReq

Waplix instance id slot

message_id
stringReq

WhatsApp message id containing attachment file

Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/messages/download-media" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "instance_id": "demo_instance",
  "message_id": "MSG_DEMO_001",
  "chat_id": "15551234567@s.whatsapp.net"
}'
Success Response
Response · 200 OK
{
  "success": true,
  "data": {
    "instance_id": "demo_instance",
    "message_id": "MSG_DEMO_001",
    "source": "message_logs",
    "available": true,
    "message_type": "image",
    "media_url": "https://picsum.photos/200.jpg",
    "mime_type": "image/jpeg",
    "file_name": null
  }
}
Was this page helpful?