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

PolicyCurrent defaults
{
  "enabled": false,
  "mode": "monitor",
  "thresholds": { "allow": 70, "block": 40 },
  "cascade": true
}

Fields

The policy controls the recommendation; it never enforces for you.
FieldMeaning
enabledMaster switch. Starts false.
modemonitor scores and recommends; enforce lets your relay act on the recommendation.
thresholds.allowThe score at or above which the default action is allow. Default 70.
thresholds.blockThe score below which the default action is block. Default 40.
cascadeWhether 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

Free to start. 10,000 scores a month, one project, no credit card.

Get started free