Skip to content

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" } ] }'
Media type application/json
object
checks
required
Array<object>
object
subject_id
required
string
subject_type
string
permission
required
One of:
string
tenant_id
string
resource_context
object
key
additional properties
rebac
object
key
additional properties
stop_on_deny
boolean
Example
{
"checks": [
{
"subject_id": "user_123",
"permission": "documents:doc_123:read",
"tenant_id": "tenant_123"
}
]
}

Successful JSON response.

Media type application/json
object
results
required
Array<object>
object
allowed
required
boolean
resolved_via
Array<string>
final_decision
required
string
Allowed values: allow deny
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"
}