Skip to main content

Get Object Types

Get list of all object types.

GET /v1/object-types

Request

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

Response

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