AI agents are everywhere. See what yours are doing →
curl --request POST \
--url https://api.osohq.com/api/evaluate_query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"predicate": [
"<unknown>"
],
"calls": [
[
"<unknown>"
]
],
"constraints": {},
"context_facts": [
{
"predicate": "<string>",
"args": [
{
"type": "<string>",
"id": "<string>"
}
]
}
]
}
'{
"results": [
{}
]
}Query v2: query for any expression.
Unlike GET /facts, which only lists facts you’ve added to Oso Cloud, you can use POST /evaluate_query to list derived information about any rule in your policy.
curl --request POST \
--url https://api.osohq.com/api/evaluate_query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"predicate": [
"<unknown>"
],
"calls": [
[
"<unknown>"
]
],
"constraints": {},
"context_facts": [
{
"predicate": "<string>",
"args": [
{
"type": "<string>",
"id": "<string>"
}
]
}
]
}
'{
"results": [
{}
]
}Documentation Index
Fetch the complete documentation index at: https://www.osohq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Requires an API key to access.
A generic query comprising 1+ predicates conjuncted together.
Predicate name and variable names.
INVARIANT: all variable names must exist in constraints. This ensures that all variables at least have a type.
2 elementsPredicate name and variable names.
INVARIANT: all variable names must exist in constraints. This ensures that all variables at least have a type.
2 elementsMap of variable names to their type and value(s). Every variable is at least typed and may also be constrained to a set of values.
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?