← Back to directory

Evaluate ordered feature-flag rules (attribute operators, semver comparison, det...

https://www.brainiac.software/api/v1/experimentation/flag-rule-evaluate

Overview

Evaluate ordered feature-flag rules (attribute operators, semver comparison, deterministic percentage rollout) for one user context and explain which rule matched. Docs: https://www.brainiac.software/api/experimentation/flag-rule-evaluate

Protocol x402 (POST)
Price $0.01
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Evaluate a Feature-flag Rule Set
Source bazaar
Indexed 2026-11-24 19:01:16

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "context": { "appVersion": "5.2.0", "country": "GB", "email": "a@b.com", "userId": "user_42" }, "flag": { "default": false, "key": "new_checkout", "rules": [ { "conditions": [ { "attribute": "email", "op": "ends_with", "value": "@acme.com" } ], "id": "staff", "serve": true }, { "conditions": [ { "attribute": "country", "op": "in", "value": [ "GB" ] } ], "id": "uk_rollout", "rollout": 0.25, "serve": true } ], "salt": "new_checkout" } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Regex conditions run on the JavaScript engine with a guard (no backreferences, lookaround or nested quantifiers, 200 characters, input cut at 1,000", "Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review." ], "matchedRule": null, "reason": "default", "sources": [ { "retrievedAt": "2026-11-14T00:00:00.000Z", "source": "NIST FIPS 180-4 Secure Hash Standard (SHA-256)", "status": "ok", "url": "https://csrc.nist.gov/pubs/fips/180-4/upd1/final" }, { "retrievedAt": "2026-11-14T00:00:00.000Z", "source": "Semantic Versioning 2.0.0", "status": "ok", "url": "https://semver.org/" } ], "trace": [ { "failedCondition": 0, "matched": false, "rule": "staff" }, { "bucket": 3933, "inRollout": false, "matched": true, "rule": "uk_rollout" } ], "value": false }, "type": "json" }