Skip to Content
Peretyn
Reference

Single permission check.

POST
/v1/check

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
tuple_key*
contextual_tuples?
consistency?Consistency
Value in"MINIMIZE_LATENCY""HIGHER_CONSISTENCY"

Response Body

Decision.

application/json
  1. response
allowed*boolean
resolution?string
Example Request
curl -X POST 'http://localhost:8080/v1/check' \  -H 'Content-Type: application/json' \  -d '{  "tuple_key": {    "user": "string",    "relation": "string",    "object": "string"  }}'
Example Response
{  "allowed": true,  "resolution": "string"}