Access
PreviewGet a role
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
roleId*stringFormat
uuidThe role.
application/json- response
id*stringFormat
uuidname*stringdescription*stringgranted*stringGiven org-wide, or on a scope.
Value in
"org""scope"builtin*booleanBuilt-in roles can be duplicated but not edited or deleted.
permissions*array<string>Permission keys. * is everything, *:read every read.
bindingCount*integerFormat
int64minOrgRole?OrgRoleThe lowest organization role a person needs for this role to count. Below it the role is paused.
Value in
"owner""admin""contributor""viewer"placeKinds?array<>The kinds of place this role can be granted on.
curl -X GET 'https://wardn.example.com/api/v1/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "granted": "org", "builtin": true, "permissions": [ "string" ], "bindingCount": 0, "minOrgRole": "owner", "placeKinds": [ "org" ]}