Returns the current user object.
GET/api/v1/users/selfHeaders |
Accept | application/json |
Response |
200 | Successful response |
JSON
{
"id": 13,
"login": "170500",
"name": "170500",
"parent_id": null,
"permissions": [
{
"id": 223,
"name": "any-permission"
},
{
"id": 221,
"name": "any-permission"
},
{
"id": 222,
"name": "any-permission"
},
{
"id": 220,
"name": "any-permission"
}
],
"created_at": "",
"updated_at": "2022-04-21 16:37:46",
"access_token_id": "c862e3c5a5a87d8b2756e4ad44a43f0a71cbf9cf3063cae019802d0b032ee17f32f69364e7aadb23",
"can_update_password": true,
"analytic_license": [
{
"type": "analytic_l1",
"type_pretty": "LIC-XXXX-VA-L1",
"all": 100,
"free": 98,
"used": 2
},
{
"type": "analytic_l2",
"type_pretty": "LIC-XXXX-VA-L2",
"all": 100,
"free": 100,
"used": 0
},
{
"type": "analytic_l3",
"type_pretty": "LIC-XXXX-VA-L3",
"all": 100,
"free": 99,
"used": 1
}
]
}
|
401 | Authorization token not sent or not valid |
Example |
JSON
curl -k --request POST \
--url 'https://your-domain/api/v1/users/self' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[]'
|