/
v3.0.11Get access

sendVerificationCodeByClient

This request is used to initiate user verification by generating and delivering a one-time verification code specially for Authorized users. It is commonly used in authentication flows such as account verification 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"-
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:

sendVerificationCodeByClient({
  rid: 2129333196,
  command: 'send_verification_code_by_client',
  params: {
    action_type: 17,
    channel_type: 1,
    phone_number: 37499000001
  }
})

Response examples:

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