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

Code Description
4 Invalid parameters specified, user not found, or code TTL expired. The code is valid for 2 hours.
1006 The maximum number of code entry attempts has been exceeded.

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