POST
/
2
/
media
/
subtitles
/
create
curl --request POST \
  --url https://api.x.com/2/media/subtitles/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "media_category": "amplify_video",
  "media_id": "1146654567674912769",
  "subtitle_info": {
    "subtitles": [
      {
        "display_name": "<string>",
        "language_code": "<string>",
        "media_id": "1146654567674912769"
      }
    ]
  }
}'
{
  "data": {
    "associated_subtitles": [
      {
        "display_name": "<string>",
        "language_code": "<string>",
        "media_id": "1146654567674912769"
      }
    ],
    "id": "1146654567674912769",
    "media_category": "amplify_video"
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
media_category
enum<string>

The media category of uploaded media

Available options:
amplify_video,
tweet_gif,
tweet_image,
tweet_video,
subtitles
media_id
string

The unique identifier of this Media.

subtitle_info
object

Response

200
application/json
The request has succeeded.
data
object
errors
object[]