<@U04UQ68083H> When using the /relation-tuples/bat...
# ory-copilot
c
@chilly-king-10285 When using the /relation-tuples/batch/check API is there a way to get a response that contains which tuple was checked and the allowed value?
b
A message from kapa.ai
When using the
/relation-tuples/batch/check
API in Ory Keto, the response contains an array of results, where each result includes the
allowed
value (indicating whether the relation tuple is allowed) and any error encountered during the check. However, the response does not explicitly include the original tuple that was checked. The order of the results in the response matches the order of the tuples in the request, so you can correlate each result to its corresponding input tuple by position. Here is the relevant response schema:
Copy code
json {   "results": [     {       "allowed": true,       "error": ""     },     {       "allowed": false,       "error": "some error"     }     // ... more results, order matches input   ] }
To summarize: - The response tells you the
allowed
value for each tuple. - It does not echo back the tuple itself. - You must match results to input tuples by their order in the request and response arrays. [Batch Check Permission API Reference](https://raw.githubusercontent.com/ory/keto/master/spec/api.json)