Skip to Content
Peretyn
Reference

Objects of a type the subject has a relation on.

POST
/v1/list-objects

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
type*string
relation*string
user*string
contextual_tuples?
consistency?Consistency
Value in"MINIMIZE_LATENCY""HIGHER_CONSISTENCY"

Response Body

Object ids (fully qualified).

application/json
  1. response
objects?array<string>
Example Request
curl -X POST 'http://localhost:8080/v1/list-objects' \  -H 'Content-Type: application/json' \  -d '{  "type": "string",  "relation": "string",  "user": "string"}'
Example Response
{  "objects": [    "string"  ]}