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" ] }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
claims
object
key
additional properties
roles
Array<string>
Example
{ "roles": [ "admin" ]}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
isAdmin
required
boolean
Example
{ "isAdmin": true}