/v1/conversations/{conversation_id}/messages/{message_id}/mediabetaGet the file of a message
- Needs
- Read your data
(mcp:read) - Plan
- Any plan with API access
- Limits
- 300 a minute per key
- Undo
- Nothing to undo: this only reads.
Returns the facts about the file of one media message (image, video, audio, document or sticker): its kind, the content type found in the file itself, a cleaned file name, its size and a download url.
The link is short-lived. media.url is a link on api.wa-api.cloud that works without your key for about 10 minutes (the exact end time is returned next to it). Download the file in that time and call this again when you need a new link; never store it. Anyone who has the link can open that one file for those minutes. The download answers with Content-Disposition: attachment and the content type found in the bytes.
A message without a file answers 400 (reason: no_media). A file the customer sent seconds ago may still be being stored: 404 with reason: media_processing, try again shortly. A file that could not be stored answers 404 with reason: media_failed.
Try it
This only reads. It uses your real data and changes nothing.
Code and response
curl -X GET 'https://api.wa-api.cloud/v1/conversations/77410/messages/5501240/media' \ -H "Authorization: Bearer $API_KEY"
The code reads your key from $API_KEY.
Parameters
| Field | Type | What it is |
|---|---|---|
| conversation_idrequired | string · path | The conversation id.pattern ^\d{1,19}$Signed in? Pick one from your data with “My data”. |
| message_idrequired | string · path | The message id (from the conversation's messages, where has_media is true).pattern ^\d{1,19}$ |
Headers
| Field | Type | What it is |
|---|---|---|
| Authorizationrequired | header | Bearer $API_KEY — your API key. |
| Api-Version | header | The API version to use, e.g. 2026-10-01. Default: the version your key is pinned to.one of: 2026-10-01 · pattern ^\d{4}-\d{2}-\d{2}$ |
Response 200
The file's facts and a short-lived download link.
| Field | Type | What it is |
|---|---|---|
| message_idrequired | string | |
| conversation_idrequired | string | |
| mediarequired | object | |
| kindrequired | string | one of: image, video, audio, document, sticker |
| mimerequired | string or null | As stored with the message (the link itself answers with the type found in the bytes). |
| file_namerequired | string or null | Cleaned file name (workspace data). |
| size_bytesrequired | number or null | Known only from GET /v1/conversations/{conversation_id}/messages/{message_id}/media. |
| voice | boolean | |
| animated | boolean | Sticker: animated. |
| captionrequired | string or null | |
| status | string | Whether the file is stored yet (when the inbox service says): processing = still being downloaded, try again shortly.one of: ready, processing, failed |
| progress | number | processing: percent done, when known. |
| urlrequired | string or null | Short-lived download link to this file (works without a key until urlExpiresAt; do not store it — read the message again for a new one). null: see urlUnavailable. |
| url_expires_atrequired | string or null | |
| url_unavailable | string | Why url is null: not_ready = the file is still being stored (try again shortly); failed = it could not be stored; preview_only = a preview, read the message with GET /v1/conversations/{conversation_id}/messages; links_disabled / storage_not_allowed = not available on this server.one of: links_disabled, not_ready, failed, storage_not_allowed, preview_only |
| shownrequired | boolean | true: the picture itself follows this answer as an image. |
| hintrequired | string or null | What to do next with this kind of file. |
Errors
Errors are application/problem+json. Branch on code.
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | A field is missing or has the wrong format. |
| 401 | unauthenticated | The Authorization header is missing, the key is unknown, expired or revoked, or the request came from an address outside the key's IP allowlist (checked on every operation, before anything runs). |
| 403 | entitlement_required | The workspace's plan does not include API access ( |
| 403 | insufficient_scope | The key does not have the permission this operation needs. Checked before the body and headers: without the permission, this is the answer whatever was sent. |
| 404 | not_found | No such message in this conversation, your key cannot see it, or its file is not stored yet ( |
| 429 | rate_limited | The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for |
| 503 | upstream_unavailable | A service behind the API is briefly unavailable. Safe to retry with backoff. |
Examples
A photo the customer sent
Response 200
{
"message_id": "5501240",
"conversation_id": "77410",
"media": {
"kind": "image",
"mime": "image/jpeg",
"file_name": "image-5501240.jpg",
"size_bytes": 184320,
"caption": "Is this the right part?",
"url": "https://api.wa-api.cloud/v1/media/m1_Zp3q…",
"url_expires_at": "2026-09-24T09:24:00Z"
},
"shown": false,
"hint": "The picture is not shown here: give the user the link (valid until 2026-09-24T09:24:00Z)."
}Operation path
The same operation is also at POST /v1/ops/inbox_get_message_media, with every field in the JSON body.