Skip to main content
Custom rules are evaluated on every proposal alongside the built-in scoring factors. Each rule adds its riskScoreDelta to the score when its conditions match. See Policy Rules for concepts.

GET /rules

Returns all active rules for a vault, sorted by priority.

POST /rules

Create a rule.
Valid ruleType: amount_limit, recipient_block, recipient_whitelist, time_restriction, velocity_limit, token_restriction, custom Valid action: approve, review, block

PATCH /rules/:id

Update any mutable field on a rule — name, description, ruleType, conditions, action, riskScoreDelta, priority, or isActive.

DELETE /rules/:id

Soft-deletes a rule (sets is_active = false).