Skip to main content
POST
/
2
/
media
/
upload
/
{id}
/
append
Append Media upload
curl --request POST \
  --url https://api.x.com/2/media/upload/{id}/append \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "segment_index": 499
}'
{
  "data": {
    "expires_at": 123
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required
Example:

Body

  • Option 1
  • Option 2
media
file
required
segment_index
required
Required range: 0 <= x <= 999

Response

data
object
errors
object[]
Minimum length: 1