Documentation / API · Config
GET | POST /api/trace/config
The policy is small: a master switch, two thresholds, and a cascade toggle. The shipped default is disabled, with the middle between 40 and 70.
Last updated
Shape
{
"enabled": false,
"mode": "monitor",
"thresholds": { "allow": 70, "block": 40 },
"cascade": true
}
Fields
| Field | Meaning |
|---|---|
enabled | Master switch. Starts false. |
mode | monitor scores and recommends; enforce lets your relay act on the recommendation. |
thresholds.allow | The score at or above which the default action is allow. Default 70. |
thresholds.block | The score below which the default action is block. Default 40. |
cascade | Whether ambiguous sessions ask for extra checks. |
Validation
Custom thresholds are live and configurable per workspace via this endpoint or in Setup → Enforcement: allow must be 50–99, block must be 10–60, and allow - block ≥ 10. The band between them is the middle: flag, then step-up cascade. The portal’s policy settings and this endpoint read the same workspace record.
Monitor first
Keep enabled: false until you have compared the verdicts with known traffic. The scoring response carries enforce and threshold so you can see what the policy would have done. The portal usage and scoring views show the split.
Related
- Scoring & verdicts — the bands
- Portal · Setup — the same policy in the UI
- Operations — rollout
- Errors & limits — validation failures