Remove a retweet of a tweet by ID from a connected X account
cURL
curl --request DELETE \ --url https://api.example.com/x/tweets/{id}/retweet \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data ' { "account": "<string>" } '
curl -X DELETE https://xquik.com/api/v1/x/tweets/1895432178065391234/retweet \ -H "x-api-key: xq_YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "account": "elonmusk" }' | jq
application/json
@
true
{ "success": true }
{ "error": "invalid_input", "message": "Invalid tweet ID or account" }
account
{ "error": "unauthenticated", "message": "Missing or invalid API key" }
{ "error": "no_subscription", "message": "No active subscription" }
{ "error": "usage_limit_reached", "message": "Monthly usage limit reached" }
{ "error": "x_write_failed", "message": "Failed to unretweet" }
Was this page helpful?