Skip to main content
POST
cURL

Authorizations

X-API-Key
string
header
required

Body

application/json
login_cookies
string
required

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

tweet_text
string
required

The text of the tweet.Must be set

proxy
string
required

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

reply_to_tweet_id
string

The id of the tweet to reply to.Optional

attachment_url
string

URL of the tweet to quote (quote tweet). Optional. e.g. https://x.com/sama/status/1947640330318156074. Not applied when reply_to_tweet_id is set.

community_id
string

The id of the community to post to.Optional

is_note_tweet
boolean

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

media_ids
string[]

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

Response

Login response

tweet_id
string

The id of the created tweet.

status
string

Status of the request.success or error

message
string

Message of the request.error message