Skip to main content
POST
Append Media Upload

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}$

Body

media
required

The media chunk to upload.

segment_index
integer
required

The index of this segment in the upload sequence.

Required range: 0 <= x <= 999

Response

The request has succeeded.

data
object
errors
object[]