Policy Rules
List rules​
GET /api/v1/rules
Create a rule​
POST /api/v1/rules
Content-Type: application/json
{
"name": "Block competitor mentions",
"type": "keyword_block",
"pattern": "openai|anthropic|competitor",
"action": "block",
"enabled": true
}
Rule types​
| Type | Description |
|---|---|
keyword_block | Block requests containing a pattern |
pii | PII detection action override |
prompt_injection | Block prompt injection attempts |
rate_limit | Per-key token rate limit |
Toggle a rule​
PATCH /api/v1/rules/:id
{ "enabled": false }