Skip to Content
Members and roles

Get a role

Permissionroles:readAuthentication
GET
/roles/{id}

Returns one system or custom workspace role by role UUID, including its exact permission set, lock state, member count, version metadata, and strong ETag. Cross-workspace role IDs are indistinguishable from missing IDs and supplying any request body is rejected.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Response Body

Canonical role record.

application/json
  1. response
id*string
Formatuuid
name*string
Length1 <= length <= 120
description*string
Lengthlength <= 1000
is_system*boolean
is_locked*boolean
permissions*array<>
Itemsitems <= 256
member_count*integer
Formatint64
Range0 <= value
version*integer
Formatint64
Range1 <= value
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.kejue.co/v1/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "is_system": true,  "is_locked": true,  "permissions": [    "string"  ],  "member_count": 0,  "version": 1,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}