verify_auth

The user/verify_auth command is used to receive a verification code to the specified address. If the address is valid, the code is sent to it and an empty object is returned in the response. To complete two-factor authentication and verify the code, use the verify_code request.

Copied!
svc=user/verify_auth&params={"userId":<long>,
			     "type":<int>,
			     "destination":"<text>"}

Parameters

The required parameters are marked with an asterisk (*).

Name Description
userId* User ID.
type* Address type (0 for sms, 1 for email).
destination* Email or phone number.

Response

Copied!
{ }

Error codes

Error code Description
4 Incorrect parameters provided.
7 The user wasn’t found, or you have no access to this user.
6 Failed to send the authentication code.

If you find a mistake in the text, please select it and press Ctrl+Enter.