permissions
List roles
Changed onRetrieve all roles in your workspace including their assigned permissions. Results are paginated and sorted by their id.
Required Permissions
Your root key must have the following permission:
- rbac.*.read_role
post/v2/permissions.listRoles
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.listRoles
- AuthHTTP bearer
Request body
Example request
{
"limit": 50,
"cursor": "eyJrZXkiOiJyb2xlXzEyMzQifQ==",
"search": "admin"
}Response
Roles retrieved successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": [
{
"id": "role_1234567890abcdef",
"name": "support.readonly",
"description": "Provides read-only access for customer support representatives to view user accounts and support tickets",
"permissions": [
{
"id": "perm_1234567890abcdef",
"name": "users.read",
"slug": "users-read",
"description": "Allows reading user profile information and account details"
}
]
}
],
"pagination": {
"cursor": "eyJrZXkiOiJrZXlfMTIzNCIsInRzIjoxNjk5Mzc4ODAwfQ==",
"hasMore": true
}
}Changes
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info
- info
the response property
became required for the status
- info