Skip to main content
Skip table of contents

Getting a user object by token

Getting a user object by token

Returns the object of the current user. Editing your account

GET /api/admin/v1/users/self

Method parameters

int

 user, administrator/user identifier



date

 to, end date

200 OK

Returns a JSON object of the user

JSON
null
401 Unauthorized

The authorization token is not provided or is invalidObtaining a token

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/users/self' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "user": 0,
    "to": "date"
}'
PHP
PHP
$data = array (
  'user' => 0,
  'to' => 'date',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/users/self', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.