Manage Roles

GEThttps://sandbox-api.truthlocks.com/v1/rolesAuth required

Returns a list of all available roles and their associated permissions within the tenant. Used for RBAC configuration.

Responses

{
  "roles": [
    {
      "id": "role_admin",
      "name": "Administrator",
      "permissions": [
        "*"
      ],
      "is_system": true
    },
    {
      "id": "role_reviewer",
      "name": "Reviewer",
      "permissions": [
        "audit:read",
        "issuers:read",
        "applications:review"
      ],
      "is_system": false
    }
  ]
}
GET/v1/roles
Language
CredentialsHEADER
Authorization
cURL Request
Examples ▾
curl --request GET \
  --url https://sandbox-api.truthlocks.com/v1/roles \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{}'
Response

Click Try It! to send a real request, or view sample responses: