Skip to main content
POST
/
access
/
v1
/
evaluation
Evaluate Entity
curl --request POST \
  --url https://api.app.reva.ai/access/v1/evaluation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subject": {
    "type": "<string>",
    "id": "<string>"
  },
  "action": {
    "name": "<string>"
  },
  "resource": {
    "type": "<string>",
    "id": "<string>",
    "properties": {}
  },
  "context": {}
}'
{
  "decision": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
  • object
  • object[]
subject
object
required
action
object
required
resource
object
required

Target resource of the decision

context
object

Optional contextual attributes

Response

Mirrored list of decisions

  • object
  • object[]
decision
boolean
required

true → allow, false → deny

I