List Roles

List WHITELABEL default and organization custom roles.

Each role’s role_type indicates its scope: account roles apply only where individually assigned, while organization roles apply across every account in the organization, including accounts created later. See Create Role.

GET/organizations/roles

List WHITELABEL default and organization custom roles.

Response

OK

idstring
namestring
descriptionstring
adminboolean
permission_idsstring[]
testing_permission_idsstring[]
role_type"account" | "organization"
created_atstring<date-time>
updated_atstring<date-time>
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/organizations/roles" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>"
Response
[
  {
    "id": "rol_AbCdEfGhIjKl",
    "name": "Admin",
    "description": "string",
    "admin": true,
    "permission_ids": [
      "string"
    ],
    "testing_permission_ids": [
      "string"
    ],
    "role_type": "account",
    "created_at": "1970-01-01T00:00:00.000Z",
    "updated_at": "1970-01-01T00:00:00.000Z"
  }
]