permissions
Get permission
Changed onRetrieve details about a specific permission including its name, description, and metadata.
Required Permissions
Your root key must have the following permission:
- rbac.*.read_permission
post/v2/permissions.getPermission
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.getPermission
- AuthHTTP bearer
Request body
Example request
{
"permission": "perm_1234567890abcdef"
}Response
Permission 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"
}
}Changes
- breaking
the
request property's maxLength was decreased to128 - warning
changed the pattern of the request property
from^[a-zA-Z][a-zA-Z0-9._-]*$to^[a-zA-Z0-9_:\-\.\*]+$ - info
the
request property's minLength was decreased from3to1
- breaking
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info