New Light partners with Amesto GlobalLight and Amesto Global Read the announcementRead more

Get current permissions

GET
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

  • permissions array of string

  • roles array of string

  • customRoles array of object

    • id string · uuid

    • name string