curl --request POST \
--url https://api.sandbox.humanity.org/v2/queries/evaluate \
--header 'Content-Type: application/json' \
--data '
{
"query": {
"check": {
"claim": "<string>",
"operator": "<unknown>",
"value": "<unknown>"
}
}
}
'{
"type": "<unknown>",
"passed": true,
"evaluatedAt": "<string>",
"evidence": {
"claimsUsed": [
{
"path": "<string>",
"value": "<unknown>",
"credentialId": "<string>",
"source": "<string>"
}
],
"checkResults": [
{
"claim": "<string>",
"operator": "<string>",
"expectedValue": "<unknown>",
"actualValue": "<unknown>",
"passed": true
}
]
},
"expiresAt": "<string>"
}Evaluate a query against the authenticated user’s credentials. This endpoint allows declarative queries to check user claims.
curl --request POST \
--url https://api.sandbox.humanity.org/v2/queries/evaluate \
--header 'Content-Type: application/json' \
--data '
{
"query": {
"check": {
"claim": "<string>",
"operator": "<unknown>",
"value": "<unknown>"
}
}
}
'{
"type": "<unknown>",
"passed": true,
"evaluatedAt": "<string>",
"evidence": {
"claimsUsed": [
{
"path": "<string>",
"value": "<unknown>",
"credentialId": "<string>",
"source": "<string>"
}
],
"checkResults": [
{
"claim": "<string>",
"operator": "<string>",
"expectedValue": "<unknown>",
"actualValue": "<unknown>",
"passed": true
}
]
},
"expiresAt": "<string>"
}The query to evaluate
Request body for query evaluation.
The query to evaluate. Can be a simple check or compound policy.
Show child attributes
Query evaluation result
Response from predicate query evaluation.