Headers
Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.
Example:
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
Response
200 - application/json
List of all roles
Unique identifier of the role
Example:
1
The slug of the role
Example:
"admin"
The name of the role
Example:
"Administrator"
The description of the role
Example:
"Administrator role with all permissions"
Indicates if the role is predefined
Example:
false
List of permissions associated with the role
Example:
[
{
"ability": "read",
"subject": "item",
"value": true
},
{
"ability": "edit",
"subject": "item",
"value": false
}
]