コンテンツにスキップ

Check relationship-based authorization decisions in batch.

POST
/api/rebac/batch-check
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/rebac/batch-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "checks": [ { "tenant_id": "tenant_123", "user_id": "user:user_123", "relation": "viewer", "object": "document:doc_123" } ] }'
Media type application/json
object
checks
required
Array<object>
object
tenant_id
required
string
user_id
required
string
relation
required
string
object
required
string
object_type
string
Example
{
"checks": [
{
"tenant_id": "tenant_123",
"user_id": "user:user_123",
"relation": "viewer",
"object": "document:doc_123"
}
]
}

Successful JSON response.

Media type application/json
object
results
required
Array<object>
object
allowed
required
boolean
cached
boolean
reason
string
key
additional properties
key
additional properties
Example
{
"results": [
{
"allowed": true,
"cached": false
}
]
}