Skip to main content
POST
Create Media subtitles

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.

Body

application/json
id
string

The media id of the video the subtitles belong to.

Pattern: ^[0-9]{1,19}$
media_category
enum<string>

The media category of the target media.

Available options:
AmplifyVideo,
TweetVideo
subtitles
object

The subtitle tracks to associate with the media.

Response

The request has succeeded.

data
object
errors
object[]