Finalizes an XChat media upload session.
curl --request POST \
--url https://api.x.com/2/chat/media/upload/{id}/finalize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"media_hash_key": "<string>",
"message_id": "<string>",
"num_parts": "<string>",
"ttl_msec": "<string>"
}
'{
"data": {
"success": true
}
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
The access token received from the authorization server in the OAuth 2.0 flow.
The session/resume id from initialize.
Request body for finalizing a Chat media upload.
XChat conversation identifier for the upload.
Media hash key returned from initialize.
Optional message identifier associated with the upload.
Total number of uploaded parts as a numeric string.
Optional TTL for the media in milliseconds.
The request has succeeded.
Response from finalizing a Chat media upload.
Show child attributes
curl --request POST \
--url https://api.x.com/2/chat/media/upload/{id}/finalize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"media_hash_key": "<string>",
"message_id": "<string>",
"num_parts": "<string>",
"ttl_msec": "<string>"
}
'{
"data": {
"success": true
}
}