v1

latestOpenAPI 3.0.1MIT2026-07-26589101.4 KB

Create a tweet.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call.

post/twitter/create_tweet_v2

Request body

login_cookiesstring required

The login cookies of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set

tweet_textstring required

The text of the tweet.Must be set

reply_to_tweet_idstring

The id of the tweet to reply to.Optional

attachment_urlstring

The url of quote tweet.Optional.eg.https://x.com/sama/status/1947640330318156074

community_idstring

The id of the community to post to.Optional

is_note_tweetboolean

If this option is set to True, tweets longer than 280 characters can be posted (Twitter Premium only).

media_idsstring[]

List of media IDs (strings) to attach. Optional. Obtain each from /twitter/upload_media_v2.

quote_tweet_idstring

ID of a tweet to quote. Optional. Alternative to attachment_url.

schedule_forstring

Schedule the tweet to be sent at a future time. Optional. Format: ISO-8601 with milliseconds, e.g. 2026-01-20T10:00:00.000Z

proxystring required

The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504

Response

Login response

tweet_idstring

The id of the created tweet.

statusstring

Status of the request.success or error

msgstring

Message of the request.error message