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: <x-api-key>' \
  --data '
{
  "password": "<string>",
  "totp_secret": "<string>"
}
'
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).

Response

id
string
Account ID.
xUsername
string
X username.
xUserId
string
X user ID.
status
string
Account status (e.g. active).
createdAt
string
ISO 8601 creation timestamp.
{
  "id": "3",
  "xUsername": "elonmusk",
  "xUserId": "44196397",
  "status": "active",
  "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.