verify_code

The user/verify_code request is used for two-factor authentication. The request should contain the code received by email or SMS after sending the user/verify_auth command.

Copied!
svc=user/verify_code&params={
	"userId":<long>,
        "code":<long>
}

Parameters

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

Parameter

Description

userId*

The ID of the user.

code*

The code received by email or SMS after sending the user/verify_auth command.

Response

If the request is completed successfully, an empty response is returned.

Copied!
{ }

Otherwise, an error code is returned.

Error codes

CodeDescription
4Invalid parameters specified, user not found, or code TTL expired. The code is valid for 2 hours.
1006The maximum number of code entry attempts has been exceeded.
Download PDF file
Download Word document

See also