permissions
List permissions
Changed onRetrieve all permissions in your workspace. Results are paginated and sorted by their id.
Required Permissions
Your root key must have the following permission:
- rbac.*.read_permission
post/v2/permissions.listPermissions
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.listPermissions
- AuthHTTP bearer
Request body
Example request
{
"cursor": "eyJrZXkiOiJwZXJtXzEyMzQifQ==",
"limit": 50,
"search": "documents"
}Response
Permissions retrieved successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": [
{
"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