GET
/v1/auth/permissionsRetrieves all available permissions (actions), scopes (packs), and roles in the authorization system. Use this endpoint to understand what permissions exist, how they're organized into packs, which roles have which packs, and which roles can perform actions across all organizations. Requires user authentication.
Response Data
Fields returned in the response
| Name | Type | Required | Description |
|---|---|---|---|
actions | Required | All available actions in the authorization system | |
packs | Required | All available permission packs (groups of actions) | |
roles | Required | All available roles with their permissions |
GET
/v1/auth/permissionsRequest
curl https://api.thesweetspot.com/v1/auth/permissions \
-H "Content-Type: application/json"Response
{
"actions": [
{
"display": null,
"name": null
}
],
"packs": [
{
"actions": null,
"name": null
}
],
"roles": [
{
"allOrgPermissions": null,
"name": null,
"packs": null
}
]
}