Skip to main content

Get All Object Types

Get a map of all your object types.

GET /v1/object-types

Sample Request

GET /v1/object-types
curl "https://api.warrant.dev/v1/object-types" \
-H "Authorization: ApiKey YOUR_KEY"

Sample Response

{
"report": {
"type": "report",
"relations": {
"editor": {
"type": "anyOf",
"rules": [
{
"type": "userset",
"relation": "owner"
}
]
},
"owner": {},
"parent": {},
"viewer": {
"type": "anyOf",
"rules": [
{
"type": "userset",
"relation": "editor"
},
{
"type": "objectUserset",
"relation": "parent",
"userset": {
"type": "userset",
"relation": "viewer"
}
}
]
}
}
},
"tenant": {
"type": "tenant",
"relations": {
"member": {}
}
}
}