Custom rules are evaluated on every proposal alongside the built-in scoring factors. Each rule adds itsDocumentation Index
Fetch the complete documentation index at: https://docs.heysage.me/llms.txt
Use this file to discover all available pages before exploring further.
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.| Field | Type | Required | Description |
|---|---|---|---|
vault | string | Yes | Vault address |
name | string | Yes | Rule name |
ruleType | string | Yes | See valid types below |
conditions | object | Yes | Type-specific match conditions |
action | string | Yes | approve, review, or block |
riskScoreDelta | number | No | Score added when triggered (default 0) |
priority | number | No | Lower runs first (default 100) |
description | string | No | Notes |
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 (setsis_active = false).

