X Accounts
Connect X account
Connect an X account to Xquik and prepare the saved TOTP secret key when Authenticator App 2FA is enabled
POST
Connect 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
If this X account uses 2FA, prepare
totp_secret before sending the request. If 2FA is already enabled and you did not save the long secret key, 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 send the saved long key as totp_secret.Headers
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Must be
application/json.Body
X username to connect. The
@ prefix is automatically stripped if included.Email address associated with the X account.
Password for the X account. Encrypted at rest immediately upon receipt.
TOTP secret key for accounts with 2FA enabled. This is the base32-encoded secret, not the 6-digit code.
Preferred proxy region for the connection (e.g.
"US", "TR").2FA secret key setup
Xquik needs the authenticator app secret key, not a live 6-digit code. The key is the long base32 string X shows while you set up Authentication App 2FA, for exampleJBSWY3DPEHPK3PXP.
Use the secret key
Paste the long base32 key into
totp_secret. Xquik uses it to generate fresh 2FA codes during login challenges.Do not use backup codes
Do not paste the 6-digit authenticator code, the 12-character backup code, a passkey, or a security key prompt.
totp_secret. If you did not save it, create a fresh authenticator app secret on X:
You saved the key
Paste that saved base32 secret into
totp_secret. Do not paste the current 6-digit authenticator code.2FA is on, 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.
2FA is not enabled
Start Authentication App setup on X, reveal the text secret, copy it, add it to your authenticator app, confirm the 6-digit code on X, then connect.
- Open X Settings and Privacy > Security and Account Access > Security.
- Open Two-Step Verification > Authentication App.
- Turn Authentication App off.
- Turn Authentication App 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.
Passkeys and security keys cannot satisfy this flow. Use Authenticator App 2FA.
Response
- 201 Created
- 202 Email Code Required
- 400 Invalid Input
- 401 Unauthenticated
- 409 Duplicate
- 429 Rate Limit Exceeded
- 429 Login Cooldown
- 422 Login Failed
- 502 X User Lookup Failed
Unique account ID.
Connected X username.
X user ID.
Account connection status (e.g.
"active").Derived login/cookie health. One of
healthy, locked, needsReauth, recovering, suspended, temporaryIssue. See Account health for meanings.ISO 8601 timestamp of when the account was connected.
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: List X Accounts to see all connected accounts, or Re-authenticate if a session expires later.
Last modified on May 23, 2026
Connect X account