Check

POST https://api.warrant.dev/v2/check

Check a user or object in your system against an existing Warrant. An authorization request returns either '200 OK' or '401 Unauthorized' depending on the user's access.

See Warrant Docs for more details.

Request Body

{"op"=>"anyOf", "warrants"=>[{"objectType"=>"role", "objectId"=>"admin", "relation"=>"member", "subject"=>{"objectType"=>"user", "objectId"=>"48"}}]}