Skip to main content
GET
Download Chat Media

Authorizations

Authorization
string
header
required

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

FlowAuthorization Code
Authorization URL
https://api.x.com/2/oauth2/authorize
Token URL
https://api.x.com/2/oauth2/token
Scopes1
media.write
Upload media, such as photos and videos, on your behalf.

Path Parameters

id
string
required
Pattern: ^([0-9]{1,19}|[0-9]{1,19}-[0-9]{1,19}|g[0-9]{1,19})$
media_hash_key
string
required
Pattern: ^[a-zA-Z0-9]{1,50}$

Response

The request has succeeded.

The response is of type file.