GET
/
api
/
roles
[
  {
    "id": 1,
    "slug": "admin",
    "name": "Administrator",
    "description": "Administrator role with all permissions",
    "predefined": false,
    "permissions": [
      {
        "ability": "read",
        "subject": "item",
        "value": true
      },
      {
        "ability": "edit",
        "subject": "item",
        "value": false
      }
    ]
  }
]

Headers

Authorization
string
required

Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Response

200 - application/json

List of all roles

The response is of type object[].