/
v3.0.11Get access

resetPassword

Reset user password using the reset code received from the email reset link

Request parameters:

Name
DescriptionTypeValuesDefault
newPassword
New password to set for the accountstring--
resetCode
Reset code received via emailstring--
phone
An optional string representing the user's registered mobile number, used as an additional verification factor or as a target for a recovery SMS during the password reset processstring--

Call example:

resetPassword({
  resetCode: 'your_reset_code_here',
  newPassword: 'your_new_password_here'
})

Response examples:

{
  code: 0,
  rid: 'df702b63',
  data: {
    result: 0,
    result_text: null,
    details: null
  }
}