Members and roles
List roles
Permission
roles:readAuthenticationGET
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.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
cursor?stringOpaque pagination cursor from a previous response's next_cursor.
limit?integerNumber of roles to return.
Range
1 <= value <= 100Default
50One page of system and custom roles.
application/json- response
data*array<>next_cursor*|Cursor for the next role page, or null after the final page.
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"}