cURL
curl --request POST \ --url https://api.x.com/2/chat/media/upload/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "conversation_id": "1603419216513746946:1603419216513746946", "total_bytes": 1 } '
{ "data": { "conversation_id": "1603419216513746946:1603419216513746946", "media_hash_key": "rByqeHiVlD", "session_id": "735401" } }
Initializes an XChat media upload session.
The access token received from the authorization server in the OAuth 2.0 flow.
Request body for initializing a Chat media upload.
XChat conversation identifier for the upload.
"1603419216513746946:1603419216513746946"
Total size of the media upload in bytes.
x >= 0
The request has succeeded.
Response from initializing a Chat media upload.
Show child attributes