Skip to main content
POST
Create a Tweet or Reply

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters for posting a tweet

tweet_content
string
required

Content of the tweet to post

Example:

"Hello, Twitter! 🐦"

Twitter authentication cookie or Twitter auth_token, how-to-get-twitter-cookie

Example:

"ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"

media_url
string | null

Single media URL (backward compatible). Prefer media_urls for multiple images.

Example:

"https://example.com/image.jpg"

media_urls
string[] | null

Media URLs to attach (max 4 images). Cannot mix with video.

Maximum array length: 4
Example:
delegated_account_username
string | null

delegated account username

Example:

"elonmusk"

schedule
string | null

Schedule time for the tweet in ISO format

Example:

"2024-01-01T12:00:00Z"

reply_tweet_id
string | null

ID of tweet to reply to

Example:

"1234567890123456789"

community_name
string | null

Name of Twitter community to post in or community id

Example:

"Python Developers or 1234567890123456789"

proxy
string | null

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://app.proxy-cheap.com/r/qiMxub

Example:

"http://username:password@ip:port"

Response

The ID and user ID of the newly created tweet.

Post tweet API response

code
integer
default:200

HTTP status code

msg
string
default:success

Response message

data
PostTweetData · object | null

Posted tweet information