Skip to main content
POST
Evaluate a query against the authenticated user's credentials
SDK equivalent
The Query Engine allows declarative queries against user credentials. Use it for access control, eligibility checks, or data extraction without hardcoding preset names.

Query Types

Predicate Queries (Boolean Checks)

Return true or false based on credential values.
Available Operators:

Compound Policies

Combine multiple checks with logical operators:
Logical Operators: Nested Example:

Projection Queries (Data Extraction)

Extract values from credentials:
Lens Operators:

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 claims
  • identity:date_of_birth - Access to age-related claims
  • financial:net_worth - Access to net worth data
See the Scopes documentation for the full scope model.

Body

application/json

The query to evaluate

Request body for query evaluation.

query
object
required

The query to evaluate. Can be a simple check or compound policy.

Response

200 - application/json

Query evaluation result

Response from predicate query evaluation.

type
any
required
passed
boolean
required

Whether the query passed.

evaluatedAt
string
required

Timestamp when the query was evaluated.

evidence
object
required

Evidence collected during evaluation.

expiresAt
string

Earliest credential expiry date (if any).