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

# Re-authenticate X account

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

## 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 requires new credentials or account verification. Cooldowns include `retryAfterMs` and `Retry-After`. Codes are `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`.

## Changes

- **2026-08-12** `d8082b3892a2` — 72 warning
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `404`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `422`
  - …68 more
- **2026-08-11** `4eb7d32e0b14` — 48 warning
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `404`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `422`
  - …44 more
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/x/accounts/:id/reauth/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/d8082b3892a2/schema)
