X Accounts
Re-authenticate X account
Re-authenticate a connected X account and send the saved TOTP secret key when Authenticator App 2FA is enabled
POST
Re-authenticate X account
Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
Free - does not consume credits
Use this when an account session expires or X requires re-verification.
If this account uses Authenticator App 2FA, send the saved long key in
totp_secret. If you never saved it or X rejects it, turn Authentication App off and on again in X to reveal a new text secret. Copy it, add it to your authenticator app, finish the 6-digit confirmation on X, then re-authenticate with that saved key.Path parameters
The unique account ID.
Headers
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.
Email for the X account. Updates the stored email during re-authentication.
Two-letter country code (ISO 3166-1 alpha-2) for the login proxy region. Example:
US, GB.2FA re-authentication
Use the long authenticator app secret key intotp_secret. Do not send the 6-digit authenticator code, a 12-character backup code, a passkey, or a security key prompt.
If you never saved the secret key, or X rejects the current one, reset the authenticator app setup before re-authenticating:
Saved key still works
Send the saved base32 secret in
totp_secret with the current password. Do not send the live 6-digit authenticator code.Key is missing
X shows the text secret only during Authentication App setup. Turn Authentication App off, turn it on again, copy the new key, then finish setup on X.
Key was rejected
Treat the old TOTP secret as stale. Reset Authentication App setup on X, save the new long key, finish 2FA confirmation, then re-authenticate.
- Open X Settings and Privacy > Security and Account Access > Security.
- Open Two-Step Verification > Authentication App.
- Turn Authentication App off, then turn it on again.
- When the QR code appears, choose Can’t scan the QR code? to reveal the text secret.
- Copy the long secret key and store it safely before leaving the setup screen.
- Add that key to your authenticator app if you are setting it up fresh.
- Finish enabling 2FA on X by entering the current 6-digit code from your authenticator app.
- Send the saved long key in
totp_secretwhen you call Xquik.
See 2FA secret key setup for the full connection checklist.
Response
- 200 OK
- 400 Invalid Input
- 401 Unauthenticated
- 404 Not Found
- 429 Login Cooldown
- 429 Rate Limited
- 422 Login Failed
Account ID.
X username.
X user ID.
Account status (e.g.
active).Derived login/cookie health. One of
healthy, locked, needsReauth, recovering, suspended, temporaryIssue. See Account health for meanings.ISO 8601 creation timestamp.
Optional ISO 3166-1 alpha-2 country code (for example
"US"). Present only when the login session country differs from the selected proxy_country. Omitted when both countries match.Related: Get X Account to check account status, or Connect X Account if you need to add a new account instead.
Last modified on May 23, 2026
Re-authenticate X account