Skip to main content

Get Permissions for Role

Get all permissions assigned directly to a specific role.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.

Endpoint

GET /v1/roles/:roleId/permissions

Request

curl "https://api.warrant.dev/v1/roles/admin/permissions" \
-H "Authorization: ApiKey YOUR_KEY"

Response

[
{
"permissionId": "create-report"
}
]