APIAuth

Get role

Get a single role by id.

GET
/roles/{role_id}

Get a single role by id.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_roles

Path Parameters

role_id*string
Formatuuid

Response Body

The request has succeeded.

application/json
  1. response

A role plus what the console derives about it.

id*uuid
Formatuuid
name*string

The role's name as shown in the console.

description*string

What the role is for.

permissions*array<>

What holding the role lets a person do.

system*boolean

Built-in roles are maintained by the product and cannot be changed.

created_at*string
Formatdate-time
user_count*integer

How many people in the organization hold this role.

Formatint32
curl -X GET "https://example.com/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "permissions": [    {      "permission": "view_agents",      "scope": "all"    }  ],  "system": true,  "created_at": "2019-08-24T14:15:22Z",  "user_count": 0}