Skip to Content
Members and roles

List roles

Permissionroles:readAuthentication
GET
/roles

Lists system and custom workspace roles with their effective permissions and current member counts in reverse creation order. Follow next_cursor until null for a complete traversal.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of roles to return.

Range1 <= value <= 100
Default50

Response Body

One page of system and custom roles.

application/json
  1. response
data*array<>
next_cursor*|

Cursor for the next role page, or null after the final page.

Example Request
curl -X GET 'https://api.kejue.co/v1/roles'
Example Response
{  "data": [    {      "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"    }  ],  "next_cursor": "string"}