/
v3.0.11Get access

resetPasswordViaSmsV2

Reset user password using a verification code received via SMS

Request parameters:

NameDescriptionTypeValuesDefault
code
The 4-to-8 digit OTP numeric verification code sent to the user's phone via SMS.string--
phone
The mobile phone number associated with the account, typically formatted with the country code (e.g., "+37455XXXXXX").string--
newPassword
The new plaintext password the user wants to set.string--
confirmNewPassword
A safety string containing the matching new password. The API will validate that newPassword === confirmNewPassword on the server before updating the database.string--

Call example:

resetPasswordViaSmsV2({
  newPassword: 'username1234',
  code: '123456',
  confirmNewPassword: 'username1234',
  phone: '+37495434323'
})

Response examples:

{
  code: 0,
  rid: '2c7312c27460c6ffbc30a422867f1a5df1427207',
  data: {
    result: 0,
    result_text: null,
    details: []
  }
}