Skip to content
API PlatformDevelopers
GET/v1/conversations/{conversation_id}/messages/{message_id}/mediabeta

Get 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

Path

The conversation id.

The message id (from the conversation's messages, where `has_media` is true).

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

Parameters
FieldTypeWhat it is
conversation_idrequiredstring · pathThe conversation id.pattern ^\d{1,19}$Signed in? Pick one from your data with “My data”.
message_idrequiredstring · pathThe message id (from the conversation's messages, where has_media is true).pattern ^\d{1,19}$

Headers

Headers
FieldTypeWhat it is
AuthorizationrequiredheaderBearer $API_KEY — your API key.
Api-VersionheaderThe 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.

Response fields
FieldTypeWhat it is
message_idrequiredstring
conversation_idrequiredstring
mediarequiredobject
kindrequiredstringone of: image, video, audio, document, sticker
mimerequiredstring or nullAs stored with the message (the link itself answers with the type found in the bytes).
file_namerequiredstring or nullCleaned file name (workspace data).
size_bytesrequirednumber or nullKnown only from GET /v1/conversations/{conversation_id}/messages/{message_id}/media.
voiceboolean
animatedbooleanSticker: animated.
captionrequiredstring or null
statusstringWhether the file is stored yet (when the inbox service says): processing = still being downloaded, try again shortly.one of: ready, processing, failed
progressnumberprocessing: percent done, when known.
urlrequiredstring or nullShort-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_atrequiredstring or null
url_unavailablestringWhy 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
shownrequiredbooleantrue: the picture itself follows this answer as an image.
hintrequiredstring or nullWhat to do next with this kind of file.

Errors

Errors are application/problem+json. Branch on code.

StatusCodeWhen
400invalid_input

A field is missing or has the wrong format. errors[] points at each field. The message has no file (reason: no_media).

401unauthenticated

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).

403entitlement_required

The workspace's plan does not include API access (api_access).

403insufficient_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.

404not_found

No such message in this conversation, your key cannot see it, or its file is not stored yet (reason: media_processing).

429rate_limited

The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for Retry-After seconds (always sent).

503upstream_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.