{"slug":"www-brainiac-software-api-v1-experimentation-flag-rule-evalu-1555df","title":"Evaluate ordered feature-flag rules (attribute operators, semver comparison, det","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/experimentation/flag-rule-evaluate","category":"other","description":"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","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":309,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"context":{"description":"context supplied by the caller for this operation.","example":{"appVersion":"5.2.0","country":"GB","email":"a@b.com","userId":"user_42"},"type":"object"},"flag":{"description":"flag supplied by the caller for this operation.","example":{"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"},"type":"object"}},"required":["flag","context"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":259,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":312,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":306,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":756,"error":null}],"description_full":"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","last_updated":"2026-11-24T14:44:36.22Z","schemes":["exact"]}