Skip to main content
Skip table of contents

Log in as a user

Log in as a user

You can send the ID of any user type except for the administrator.

Sessions created by administrators will not be counted and displayed in user session limits.

permission - login-under-user

POST api/admin/v1/user-actions/{user}/create-token

Method parameters

int user, user identifier

200 OK

Successful response

401 Unauthorized

Authorization token is not provided or is invalid

404 Not Found

If the user is not found or camera synchronization is not possible for the given user

cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/user-actions/{user}/create-token' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "user": 0
}'
PHP
PHP
$data = array (
  'user' => 0,
);
$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-domainapi/admin/v1/user-actions/{user}/create-token', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.