cURL
curl --request POST \ --url https://api.example.com/api/auth/email/reset-password \ --header 'Content-Type: application/json' \ --data ' { "newPassword": "newSecurePassword123", "otp": "a1b2c3d4..." } '
{ "message": "Password reset successfully" }
Reset user password with a token. The token can be:
Both token types use RESET_PASSWORD purpose and are verified the same way.
Flow summary:
New password meeting configured requirements
"newSecurePassword123"
Reset token (either from magic link or from exchange-reset-password-token endpoint)
"a1b2c3d4..."
Password reset successfully
"Password reset successfully"