Skip to content

Check whether a subject is an admin.

POST
/api/policy/is-admin
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/policy/is-admin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "roles": [ "admin" ] }'
Media type application/json
object
claims
object
key
additional properties
roles
Array<string>
Example
{
"roles": [
"admin"
]
}

Successful JSON response.

Media type application/json
object
isAdmin
required
boolean
Example
{
"isAdmin": true
}