Skip to main content

Send reset password email

POST 

/user/reset_password

Sends a one-time reset code to the user's registered email address. The code must then be supplied to PUT /user/reset_password together with the new password.

Requirements

  • Password reset must be enabled in the plugin settings.
  • If "Reset Password Requires Auth Code" is enabled, AUTH_KEY must be provided.

An email that does not belong to a WordPress user gets the same 200 answer as one that does (nothing is sent), so the endpoint can not be used to find which emails have an account. Exception: the simple_jwt_login_response_send_reset_password filter and the reset password webhooks run only for real users. When they change the response or add a delay, callers can tell which emails exist.

Flow

  1. Call POST /user/reset_password with email (and AUTH_KEY if required).
  2. The user receives an email containing a one-time code.
  3. Call PUT /user/reset_password with email, code, and new_password.

Request​

Responses​

Request accepted (also for emails without an account). The message depends on the "Reset password flow" setting.