---
title: "Re-authenticate X account"
method: POST
path: "/api/v1/x/accounts/{id}/reauth"
tags: ["X Accounts"]
---

# Re-authenticate X account

`POST /api/v1/x/accounts/{id}/reauth`

Re-authenticate X account.

## Path parameters

- `id` string, required

## Request body

- object
  - `password` string, required — Updated account password
  - `totp_secret` string — Replacement Authenticator App TOTP secret. Omit it to reuse the saved secret.
  - `email` string — Email for the X account (updates stored email)

## Response `200`

Re-authenticated

- SanitizedXAccount — Sanitized X account summary returned by connect and reauth.
  - `id` string, required
  - `xUserId` string, required
  - `xUsername` string, required
  - `status` 'active', required
  - `health` 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue', required
  - `createdAt` string, date-time, required

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `404` — No X account with this ID belongs to the authenticated user. Returns error code `account_not_found`.
- `422` — Login could not continue because credentials or account verification require user action. When a cooldown applies, the response includes `retryAfterMs` and a `Retry-After` header in seconds. Returns error code `login_failed` or `passkey_required`.
- `429` — A prior login attempt triggered a cooldown. Response includes `reason`, `retryAfterMs`, and a `Retry-After` header in seconds. Returns error code `login_cooldown`.
- `503` — The X connection service is temporarily unavailable. Retry after a short delay. Returns error code `service_unavailable`.
- `default` — Unexpected error.

---

[API](https://skmtc.net/xquik-dev/apis/xquik-api-2.md) · [All operations](https://skmtc.net/xquik-dev/apis/xquik-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-2/versions/c70f0e286159/schema)
