Skip to main content
POST
/
twitter
/
create_tweet
cURL
curl --request POST \
  --url https://api.twitterapi.io/twitter/create_tweet \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "auth_session": "<string>",
  "tweet_text": "<string>",
  "quote_tweet_id": "<string>",
  "in_reply_to_tweet_id": "<string>",
  "media_id": "<string>",
  "proxy": "<string>"
}'
{
  "status": "<string>",
  "msg": "<string>",
  "data": {
    "create_tweet": {
      "tweet_result": {
        "result": {
          "rest_id": "<string>"
        }
      }
    }
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
auth_session
string
required

The session of the login. It's returned by /twitter/login_by_2fa

tweet_text
string
required

The text of the tweet.

proxy
string
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

quote_tweet_id
string

The id of the tweet to quote.Optional

in_reply_to_tweet_id
string

The id of the tweet to reply to.Optional

media_id
string

The id of the media to attach.Optional

Response

Create tweet response

status
string

Status of the request.success or error

msg
string

Message of the request.error message

data
object

The data of the tweet

I