10 credits per call · All plans from $0.00012/credit
curl -X POST https://xquik.com/api/v1/x/tweets \
-H "x-api-key: xq_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"account": "elonmusk",
"text": "Hello from Xquik!"
}' | jq
Your API key. Session cookie authentication is also supported.
Must be application/json.
Body
X username or account ID identifying which connected X account to post as. The @ prefix is automatically stripped if included.
Tweet text content. Maximum 280 characters for standard tweets, or up to 25,000 characters if is_note_tweet is true.
Tweet ID to reply to. When set, the new tweet is posted as a reply in that tweet’s thread.
URL to attach to the tweet as a card. Must be a valid HTTP or HTTPS URL.
X Community ID to post the tweet into. The connected account must be a member of the community.
Set to true to post a long-form note tweet (up to 25,000 characters). Defaults to false.
Array of media IDs to attach. Upload media first via the Upload Media endpoint, then pass the returned IDs here. Maximum 4 images or 1 video per tweet.
Response
ID of the newly created tweet.
{
"tweetId" : "1895432178065391234" ,
"success" : true
}
{ "error" : "invalid_input" , "message" : "Text is required and must not exceed character limit" }
Missing or invalid text, invalid account format, or other validation failure. { "error" : "unauthenticated" , "message" : "Missing or invalid API key" }
Missing or invalid API key. { "error" : "no_subscription" , "message" : "No active subscription" }
An active subscription is required. Subscribe from the dashboard . { "error" : "usage_limit_reached" , "message" : "Monthly usage limit reached" }
Your monthly usage quota has been exhausted. Usage resets at the start of your next billing cycle. { "error" : "x_write_failed" , "message" : "Failed to post tweet" }
The tweet could not be posted. The connected account may be suspended, rate-limited, or the content may violate platform policies. Try again later.