Creates a new tweet on X with specified content and options.

This function posts a new tweet to X (formerly Twitter) with the given content and various optional parameters. It allows for customization of the tweet, including attaching media, creating polls, setting reply preferences, and more. The function returns a promise that resolves to the created tweet data.

post/create

Request body

Response

Successful response

idstring required

The unique identifier of the tweet

textstring required

The text content of the tweet

created_atstring

The creation time of the tweet

author_idstring

The ID of the author of the tweet

edit_history_tweet_idsstring[]

An array of previous tweet IDs

Changes