Get information about the current user

GET /Api/Auth/Control

Requires one of the following permissions: Auth.Control

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • user object
      Hide user attributes Show user attributes object
      • id string(uuid)
      • name string | null
      • email string | null
      • emailVerifiedAt string(date-time) | null
      • realName string | null
      • class string | null
      • Additional properties are NOT allowed
    • session object
      Hide session attributes Show session attributes object
      • expiry string(date-time)
      • Additional properties are NOT allowed
    • isSuperUser boolean
    • userGroups array[string] | null
    • permissions array[string] | null
    • features array[string] | null
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

GET /Api/Auth/Control
curl \
 -X GET https://app.lovassy.hu/Api/Auth/Control \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "user": {
    "id": "string",
    "name": "string",
    "email": "string",
    "emailVerifiedAt": "2024-05-04T09:42:00+00:00",
    "realName": "string",
    "class": "string"
  },
  "session": {
    "expiry": "2024-05-04T09:42:00+00:00"
  },
  "isSuperUser": true,
  "userGroups": [
    "string"
  ],
  "permissions": [
    "string"
  ],
  "features": [
    "string"
  ]
}