Evaluate a rule
POST/v1/rules/:ruleKey/evaluate
Evaluates the active rule identified by ruleKey against the provided context. The context is an arbitrary JSON object passed directly to the rule evaluation engine. Missing fields are treated as null.
Caching: On first evaluation, the rule is loaded from the database and a rule engine instance is cached keyed by ruleKey:version. Subsequent evaluations for the same version use the cached engine instance.
Sensitive Data: The context and result fields may contain AML/KYC customer data. These fields are never logged; only ruleKey and evaluation duration are logged.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Rule evaluated successfully
Schema validation failed (GEN000000)
Missing or invalid bearer token (GEN022000)
Rule not found or inactive (BRE004001)
Engine evaluation error (BRE100001), Function node timeout (BRE100002), Graph depth exceeded (BRE100003), or Rule load error (BRE100004)