Free — does not consume credits
Use this when an account session expires or X requires re-verification.
curl -X POST https://xquik.com/api/v1/x/accounts/3/reauth \
-H "x-api-key: xq_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"password": "s3cureP@ss",
"totp_secret": "JBSWY3DPEHPK3PXP"
}' | jq
Path parameters
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Must be application/json.
Body
Current password for the X account.
TOTP secret key if the account has 2FA enabled. This is the base32-encoded secret (not the 6-digit code).
Response
Account status (e.g. active).
ISO 8601 creation timestamp.
{
"id": "3",
"xUsername": "elonmusk",
"xUserId": "44196397",
"status": "active",
"createdAt": "2026-02-20T08:15:00.000Z"
}
{ "error": "invalid_input", "message": "Missing required password field" }
Missing password field or invalid format.{ "error": "invalid_id", "message": "Invalid account ID format" }
The provided account ID is not a valid format.{ "error": "unauthenticated", "message": "Missing or invalid API key" }
Missing or invalid API key.{ "error": "not_found", "message": "X account not found" }
No account exists with this ID, or it belongs to a different Xquik account.{ "error": "reauth_failed", "message": "Could not re-authenticate with X. Check credentials." }
The provided credentials could not authenticate with X. Verify the password and TOTP secret.