Evaluate a query against the authenticated user's credentials
Query Engine
Query Engine · Evaluate
Evaluate a query against the authenticated user’s credentials. This endpoint allows declarative queries to check user claims.
POST
Evaluate a query against the authenticated user's credentials
SDK equivalent
Query Types
Predicate Queries (Boolean Checks)
Returntrue or false based on credential values.
Compound Policies
Combine multiple checks with logical operators:
Nested Example:
Projection Queries (Data Extraction)
Extract values from credentials:Response Types
Predicate Response
Projection Response
Claim Paths
Claims are accessed using dot-notation paths based on credential categories:Scope Requirements
Query evaluation respects OAuth scopes. You can only query claims covered by the granted scopes. For example:identity:read- Access to basic identity claimsidentity:date_of_birth- Access to age-related claimsfinancial:net_worth- Access to net worth data
Body
application/json
The query to evaluate
Request body for query evaluation.
The query to evaluate. Can be a simple check or compound policy.
- Option 1
- Option 2
- Option 3
Response
200 - application/json
Query evaluation result
- Option 1
- Option 2
Response from predicate query evaluation.