Skip to main content
POST
/
2
/
chat
/
media
/
upload
/
{id}
/
finalize
Finalize Chat Media Upload
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
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The session/resume id from initialize.

Body

application/json

Request body for finalizing a Chat media upload.

conversation_id
string

XChat conversation identifier for the upload.

media_hash_key
string

Media hash key returned from initialize.

message_id
string

Optional message identifier associated with the upload.

num_parts
string

Total number of uploaded parts as a numeric string.

ttl_msec
string

Optional TTL for the media in milliseconds.

Response

The request has succeeded.

Response from finalizing a Chat media upload.

data
object