Skip to main content
POST
/
api
/
access-control
/
simulate
Simulate access
curl --request POST \
  --url https://api.rigbox.dev/api/access-control/simulate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "<string>",
  "resource": "<string>",
  "principal": "<string>"
}
'
{
  "action": "<string>",
  "allowed": true,
  "principal": "<string>",
  "reason": "<string>",
  "resource": "<string>"
}
Useful for debugging access control policies without making actual changes.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
action
string
required
resource
string
required
principal
string | null

Response

Authorization decision simulation

action
string
required
allowed
boolean
required
principal
string
required
reason
string
required
resource
string
required