Get current permissions
https://api.light.inc/v1/permissions/current
Returns the permissions the caller holds and the roles they come from: the system roles the caller holds now, expanded through the role tree as sign-in expands them and staff roles included, plus the system roles their custom roles cover, and their active custom roles. For an API key, these are the key's own.
Permission: none, open to any signed-in user.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Response
-
permissionsarray of string -
rolesarray of string -
customRolesarray of object-
idstring · uuid -
namestring
-