admin

Recover User

Manual account recovery (Method 3 backend).

Two modes (email mode takes precedence if both provided):

  • Email mode: send a reset link with bind_email claim to body.email. The user clicks the link to set a new password AND bind the email.
  • Direct password mode: set body.password directly, revoke all sessions, increment token_version. No email is bound.

Returns a rich bilingual response with action details and reminders for the admin.

post/api/v1/admin/users/{user_id}/recover

Request

  • Base URL: https://api.chaldea.center (the document declares no server; this is the origin it was published from)
  • URL: https://api.chaldea.center/api/v1/admin/users/{user_id}/recover
  • Auth: OAuth 2 (password, token URL /api/v1/auth/token)

Path parameters

user_idinteger required

Request body

emailstring email nullable
passwordstring nullable

Response

Successful Response

messagestring required
message_zhstring required
action'reset_email_sent' | 'password_directly_reset' required
user_idinteger required
usernamestring required
email_providedboolean required
email_boundboolean required
detailsstring required
details_zhstring required
remindersstring[] required
reminders_zhstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.