Skip to main content
POST
/
x
/
accounts
/
{id}
/
reauth
Re-authenticate X account
curl --request POST \
  --url https://xquik.com/api/v1/x/accounts/{id}/reauth \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "password": "<string>",
  "totp_secret": "<string>",
  "email": "<string>",
  "proxy_country": "<string>"
}
'

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.
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

id
string
required
The unique account ID.

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Body

password
string
required
Current password for the X account.
totp_secret
string
TOTP secret key if the account has 2FA enabled. This is the base32-encoded secret (not the 6-digit code).
email
string
Email for the X account. Updates the stored email during re-authentication.
proxy_country
string
Two-letter country code (ISO 3166-1 alpha-2) for the login proxy region. Example: US, GB.

Response

id
string
Account ID.
xUsername
string
X username.
xUserId
string
X user ID.
status
string
Account status (e.g. active).
health
string
Derived login/cookie health. One of healthy, locked, needsReauth, recovering, suspended, temporaryIssue. See Account health for meanings.
createdAt
string
ISO 8601 creation timestamp.
loginCountry
string
Optional ISO 3166-1 alpha-2 country code (for example "US"). Present only when the declared proxy region was unavailable and login used a one-time US browser session. Future activity continues to use the selected proxy_country. Omitted on normal logins.
{
  "id": "3",
  "xUsername": "elonmusk",
  "xUserId": "44196397",
  "status": "active",
  "health": "healthy",
  "createdAt": "2026-02-20T08:15:00.000Z"
}
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 6, 2026