POST
/
twitter
/
tweets
/
create
curl --request POST \
  --url https://api.twitterxapi.com/twitter/tweets/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "media_url": "https://example.com/image.jpg",
  "tweet_content": "Hello, Twitter! 🐦",
  "schedule": "2024-01-01T12:00:00Z",
  "reply_tweet_id": "1234567890123456789",
  "cookie": "auth_token=abc123...",
  "community_name": "Python Developers"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "tweet_id": "1234567890123456789",
    "user_id": "1234567890"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Parameters for posting a tweet

Response

200
application/json

The ID and user ID of the newly created tweet.

Post tweet API response