Run authorization checks in batch.
POST
/api/check/batch
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/check/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "checks": [ { "subject_id": "user_123", "permission": "documents:doc_123:read", "tenant_id": "tenant_123" } ] }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
Example
{ "checks": [ { "subject_id": "user_123", "permission": "documents:doc_123:read", "tenant_id": "tenant_123" } ]}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
results
required
Array<object>
object
allowed
required
boolean
resolved_via
Array<string>
final_decision
required
string
cache_ttl
integer
key
additional properties
allowed
boolean
final_decision
string
key
additional properties
Example
{ "results": [ { "allowed": true, "resolved_via": [ "rebac" ], "final_decision": "allow", "cache_ttl": 60 } ], "allowed": true, "final_decision": "allow"}