Skip to Content
Peretyn
Reference

Run many checks in one call; results keyed by correlation id.

POST
/v1/batch-check

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
checks*array<>

Response Body

Per-correlation-id results.

application/json
  1. response
result*
Example Request
curl -X POST 'http://localhost:8080/v1/batch-check' \  -H 'Content-Type: application/json' \  -d '{  "checks": [    {      "tuple_key": {        "user": "string",        "relation": "string",        "object": "string"      },      "correlation_id": "string"    }  ]}'
Example Response
{  "result": {    "property1": {      "allowed": true,      "error": {        "message": "string"      }    },    "property2": {      "allowed": true,      "error": {        "message": "string"      }    }  }}