Skip to main content
GET
/
v1
/
roles
List Roles
curl --request GET \
  --url https://api.truthlocks.com/v1/roles \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "permissions": [
      "<string>"
    ]
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Parameters

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Response

200 - application/json

List of roles

id
string<uuid>
name
string
permissions
string[]