Blueticks
Messages

Get message media

Download the media attached to a WhatsApp message (image, video, document, audio).

Returns either a hosted URL (url) or inline dataBase64, plus mimetype + filename.

The engine fetches media lazily, so the first call right after a message arrives may still be in flight. By default the server polls up to 6 times (1.5s apart) until the bytes are ready. Pass ?maxAttempts=1 to skip the poll and return immediately (the fast path — useful when you only need the hosted url and can tolerate a retry yourself).

CAVEAT: for own-sent newsletter media (messages you sent to a @newsletter chat), the bytes returned are a WA-generated preview JPEG (~7KB) rather than the original you uploaded — WA releases the original blob from memory immediately after the unencrypted upload. The response will include originalQuality:false when this fallback is in effect; the caller can warn the user or decide to retry from a different source.

Requires chats:read.

Request

curl -X GET "https://api.blueticks.co/v1/messages/media/"
GET
/v1/messages/media/{waMessageKey}

Path Parameters

waMessageKey*string

The complete WhatsApp message key (<fromMe>_<chatJid>_<id>[_<participant>]), e.g. false_120363426216988013@g.us_3EB0659D13650092D677AD_188450464616609@lid.

Query Parameters

chatId?string

Optional. Only used to find the message faster — when you pass a bare message id instead of the complete key, chatId lets the server rebuild the full key. If you pass the complete waMessageKey you can omit it.

maxAttempts?integer

Optional. Maximum number of engine attempts (including the first) while the media is still being fetched from the phone. Defaults to 6; pass 1 to skip retries and return immediately. Range 1–10.

Default6
Range1 <= value <= 10

Response

Response Body

application/json

application/json