Evaluate a query against the authenticated user’s credentials. This endpoint allows declarative queries to check user claims.
true or false based on credential values.
| Operator | Description | Example |
|---|---|---|
== | Equals | { "claim": "kyc.passed", "operator": "==", "value": true } |
!= | Not equals | { "claim": "identity.country", "operator": "!=", "value": "US" } |
> | Greater than | { "claim": "financial.net_worth", "operator": ">", "value": 100000 } |
>= | Greater than or equal | { "claim": "identity.age", "operator": ">=", "value": 21 } |
< | Less than | { "claim": "identity.age", "operator": "<", "value": 65 } |
<= | Less than or equal | { "claim": "financial.loan_balance", "operator": "<=", "value": 50000 } |
in | Value in array | { "claim": "identity.country", "operator": "in", "value": ["US", "CA", "UK"] } |
notIn | Value not in array | { "claim": "identity.country", "operator": "notIn", "value": ["RU", "CN"] } |
contains | Array contains value | { "claim": "identity.social_accounts", "operator": "contains", "value": "github" } |
isDefined | Claim exists | { "claim": "kyc.document_number", "operator": "isDefined" } |
startsWith | String prefix | { "claim": "identity.email", "operator": "startsWith", "value": "admin@" } |
matchRegex | Regex match | { "claim": "identity.phone", "operator": "matchRegex", "value": "^\\+1" } |
| Operator | Description |
|---|---|
allOf | AND - all conditions must pass |
anyOf | OR - at least one condition must pass |
not | NOT - negate the result |
| Lens | Description |
|---|---|
pluck | Extract single value at path |
pick | Extract subset of object fields |
at | Array index access |
| Category | Example Claims |
|---|---|
identity | identity.age, identity.email, identity.country_of_residence |
kyc | kyc.passed, kyc.document_country, kyc.last_updated_at |
financial | financial.net_worth, financial.bank_balance, financial.loan_balance |
identity:read - Access to basic identity claimsidentity:date_of_birth - Access to age-related claimsfinancial:net_worth - Access to net worth dataThe query to evaluate
Request body for query evaluation.
The query to evaluate. Can be a simple check or compound policy.
Query evaluation result
Response from predicate query evaluation.