API referenceWhatsapp messages
GET
/whatsapp/api/v1/messages/{id}/attachments/{attachmentId}

The media, fetched from WhatsApp on demand (nothing is kept), served as a download of the type the message declares. attachmentId is <message id>.0. 422 over 32 MB.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

A WhatsApp message id (wam_…), as listed in a chat's messages.

attachmentId*string

The attachment's id from the message's attachments: the message id followed by .0 (a WhatsApp message has one file at most). Any other value answers 404.

Response Body

application/octet-stream

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/whatsapp/api/v1/messages/wam_P7tR2wQ9zL4kN8vX/attachments/wam_P7tR2wQ9zL4kN8vX.0"
"string"