POST
/
twitter
/
tweets
/
{tweet_id}
/
retweet
curl --request POST \
  --url https://api.twitterxapi.com/twitter/tweets/{tweet_id}/retweet \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cookie": "auth_token=abc123..."
}'
{
  "code": 200,
  "msg": "success",
  "data": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tweet_id
string
required

The ID of the tweet to retweet.

Body

application/json

Body for the retweet action, containing only the cookie.

Response

200
application/json

A confirmation of the action's success.

Tweet action response