Get Role
Retrieve a specific role by its ID.
GET
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
roleIdstringrequiredThe unique identifier of the role.
Response Fields
_idstringUnique identifier for the role.
namestringName of the role.
descriptionstringDescription of the role.
permissionsarrayArray of permission objects assigned to the role.
userIdsarrayArray of user IDs assigned to this role.
{
"_id": "665a1b2c3d4e5f6a7b8c9d0e",
"name": "Agent Manager",
"description": "Can manage agents and view call history",
"permissions": [
{ "key": "agent_view", "category": "agents" },
{ "key": "agent_create", "category": "agents" },
{ "key": "agent_edit", "category": "agents" }
],
"userIds": ["user_001"]
}