Rules API

The Rules API supports the operational lifecycle for fraud controls: listing rules, creating or updating rule definitions, pausing or activating rules, and inspecting rule metadata.

Rules are evaluated by MADIE when active. Inactive rules can be tested through the Rule Testing API without affecting live decisions.

Common Operations

GET/v1/rules/{orgId}

List rules for an organization.

POST/v1/rules/{orgId}

Create a new rule definition.

GET/v1/rules/{orgId}/{ruleId}

Fetch one rule and its metadata.

PUT/v1/rules/{orgId}/{ruleId}

Update a rule definition or metadata.

PATCH/v1/rules/{orgId}/{ruleId}/status

Activate, pause, or deactivate a rule when the caller has permission.

DELETE/v1/rules/{orgId}/{ruleId}

Delete or archive a rule, depending on deployment policy.

Governance Notes

Production deployments should use a governed lifecycle: draft, review, inactive test, approval, activation, monitoring, and revision.

See Rules And FLM.