curl --request GET \
--url https://api.nuon.co/v1/general/current-user \
--header 'Authorization: <api-key>'
{
"account_type": "auth0",
"created_at": "<string>",
"email": "<string>",
"id": "<string>",
"org_ids": [
"<string>"
],
"permissions": {},
"roles": [
{
"createdBy": {},
"created_at": "<string>",
"created_by_id": "<string>",
"id": "<string>",
"policies": [
{
"created_at": "<string>",
"created_by_id": "<string>",
"id": "<string>",
"name": "org_admin",
"permissions": {},
"role_id": "<string>",
"updated_at": "<string>"
}
],
"role_type": "org_admin",
"updated_at": "<string>"
}
],
"subject": "<string>",
"updated_at": "<string>"
}
curl --request GET \
--url https://api.nuon.co/v1/general/current-user \
--header 'Authorization: <api-key>'
{
"account_type": "auth0",
"created_at": "<string>",
"email": "<string>",
"id": "<string>",
"org_ids": [
"<string>"
],
"permissions": {},
"roles": [
{
"createdBy": {},
"created_at": "<string>",
"created_by_id": "<string>",
"id": "<string>",
"policies": [
{
"created_at": "<string>",
"created_by_id": "<string>",
"id": "<string>",
"name": "org_admin",
"permissions": {},
"role_id": "<string>",
"updated_at": "<string>"
}
],
"role_type": "org_admin",
"updated_at": "<string>"
}
],
"subject": "<string>",
"updated_at": "<string>"
}
Type "Bearer" followed by a space and token.
OK
The response is of type object
.