Forgot Password - Change Password

POST {{url}}{{site}}/services/auth/headless/forgot_password

Forgot Password/Change Password is a two step process: In the first step you pass a username and recaptcha token into the endpoint. Salesforce then sends an OPT to the end user. In the second step you collect that OTP from the end user, confirming that they do own the email associated to the user, and the new password. This call is the second step in that process.

Request Body

{"username"=>"<username>", "newpassword"=>"<new password>", "otp"=>"<OTP sent ot end user>"}