26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Get authentication code

Get a code for authentication

POST  /api/v1/billing/user/manage/auth/code

JSON
{
    "login": "test@mail.com"
}

Method parameters

string login, User login.

200  OK

Returns a user object

JSON
{
    "code": "sdakjhsdkjahsdasd"
}

400  Bad Request

Request failed

JSON
{
    "error": "Error message"
}

422  Unprocessable Entity

Returns a JSON error object. For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage/auth/code' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string"
}'
PHP
PHP
$data = array (
  'login' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/user/manage/auth/code', false, $context);