/
v3.0.11Get access

sendVerificationCode

This request is used to initiate user verification by generating and delivering a one-time verification code for unauthorized users. It is commonly used in authentication flows such as registration or sensitive actions requiring identity confirmation.

Request parameters:

Name
DescriptionTypeValuesDefault
actionType
Specifies the context in which the verification code is requested. This value determines the flow, validation rules, and any restrictions applied when sending the code.string"login", "registration", "passwordChange", "withdrawRequest", "personalDataUpdate", "twoFactorWithSms", "phoneVerification", "forgotPassword"-
channelType
The communication channel to send the code.string"email" / "phone"-
phoneNumber
The user's phone number to which will be sent verification codestring--
email
The user's email address which is getting from user's profilestring--

Call example:

sendVerificationCode({
  email: '[email protected]',
  actionType: 'login',
  channelType: 'phone'
})

Response examples:

{
  code: 0,
  rid: 1005080975,
  data: {
    result: 0,
    result_text: null,
    details: []
  }
}