Skip to navigation

Set New Password (via Reset Token)

Set a new password using a password reset token. Also used after email confirmation to set the initial password.

Authentication: Public — token-based.

Request body:

  • token (required) — Password reset token from the reset email or confirmation flow
  • password (required) — New password
  • password_confirmation (required) — Must match the new password

Response: Same as a successful login:

  • token — JWT auth token (user is auto-logged in)
  • location — Redirect URL
  • the member’s profile fields at the top level of data (id, first_name, last_name, name, initials, email, avatar_url, status, bio, phone, website, social handles, otp_enabled, passkey_registered, last_seen_at, created_at, updated_at, …) — there is no nested user object

Side effects:

  • Updates the user’s password
  • Sets user status to “active”
  • Clears the reset_password flag
  • Triggers a UserLogin event
  • Creates a new session

Errors:

  • 401 — Invalid or expired reset token
  • 422 — Password validation failed (e.g. too short, confirmation mismatch)

Request

This endpoint expects an object.
tokenstringOptional
passwordstringOptional
password_confirmationstringOptional

Response

OK