Roles
Retrieves a comprehensive list of all available roles within the application.
Get all roles
get/api/v1/rolesRetrieve detailed information for all roles, including the number of assigned users and the reporting hierarchy.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/roles' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Example response
200 Success
{
"data": [
{
"id": 648,
"name": "Business Intelligence Analyst",
"description": "Develops dashboards and reports to support strategic decision-making",
"assignedUserCount": 10,
"reportingRole": {
"id": 628,
"name": "Software developer"
},
"createdOn": "2025-09-01T10:03:00.829848Z",
"creator": {
"id": 209,
"name": "Emily Parker",
"status": "Active"
},
"modifiedOn": "2025-09-01T10:10:44.553475Z",
"modifier": {
"id": 209,
"name": "Michael Chen",
"status": "Active"
}
}
]
}