curl https://api.zerodrift.ai/api/policies/custom-rules-enforcement \
-H "x-api-key: YOUR_API_KEY"
{
"enabled": true
}
Rules
Get Custom Rules Default
Read whether validations that name no model_engine run your custom rules on Max.
GET
/
api
/
policies
/
custom-rules-enforcement
curl https://api.zerodrift.ai/api/policies/custom-rules-enforcement \
-H "x-api-key: YOUR_API_KEY"
{
"enabled": true
}
Returns your workspace’s Run custom rules by default setting. When it’s
true and at least one custom rule is active, a validation that names no model_engine runs on Max (anchor_3_0_max) and checks your custom rules. See Run Custom Rules by Default.
It reads false while rule activation isn’t enforced for your workspace. Any API key can read it, and it always reads the calling key’s own workspace.
Response
curl https://api.zerodrift.ai/api/policies/custom-rules-enforcement \
-H "x-api-key: YOUR_API_KEY"
{
"enabled": true
}
Errors
| Status | Meaning |
|---|---|
403 | No workspace was found for this API key. |

