> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrift.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Custom Rules Default

> Read whether validations that name no model_engine run your custom rules on Max.

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](https://docs.zerodrift.com/guides/custom-rules-by-default.md).

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

**enabled** `boolean`

Whether the setting is on.

```bash cURL theme={null}
curl https://api.zerodrift.ai/api/policies/custom-rules-enforcement \
  -H "x-api-key: YOUR_API_KEY"
```

```json 200 OK theme={null}
{
  "enabled": true
}
```

## Errors

| Status | Meaning |
| - | - |
| `403` | No workspace was found for this API key. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.