Skip to main content
GET
/
2
/
chat
/
media
/
{conversation_id}
/
{media_hash_key}
Download Chat Media
curl --request GET \
  --url https://api.x.com/2/chat/media/{conversation_id}/{media_hash_key} \
  --header 'Authorization: Bearer <token>'
{
  "data": "<string>",
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

conversation_id
string
required

The Chat conversation ID. Unique identifier of an Chat conversation. Format is either two user IDs separated by a hyphen (e.g., '1215441834412953600-1603419180975409153') for direct conversations, or 'g' followed by a numeric ID (e.g., 'g1234567890123456789') for group conversations.

Example:

"1215441834412953600-1603419180975409153"

media_hash_key
string
required

The media hash key returned from the upload initialize step. The media hash key returned from the upload initialize step. Alphanumeric characters only.

Example:

"AGgkIbPRTG"

Response

The request has succeeded.

data
string

Raw encrypted media bytes. The actual response has content type application/octet-stream, not JSON. This schema exists only to satisfy platform constraints.

errors
object[]
Minimum array length: 1

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).