X Write
Create tweet
post/x/tweets
Request body
Example request
{
"account": "@elonmusk",
"text": "Just launched our new feature!",
"reply_to_tweet_id": "1234567890",
"attachment_url": "https://x.com/elonmusk/status/1234567890",
"community_id": "1500000000000000000",
"media": [
"https://example.com/video.mp4"
]
}Response
Tweet created
Example response
{
"tweetId": "1234567890",
"success": true,
"charged": true,
"chargedCredits": "32",
"writeActionId": "42"
}