Skip to main content
POST
Check current user's role

Authorizations

hanko
string
cookie
required

Body

application/json
organization_id
string<uuid4>
required

The ID of the organization to check

Example:

"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"

roles
string[]
required

IDs or slugs of roles to check for. The check succeeds if the user holds at least one of the listed roles (OR semantics).

Minimum array length: 1

Response

Role check result

has_role
boolean
required