How to write compliance rules in natural language
Describe what you need in plain English. Cadreen reads your rule, turns it into checks it can enforce, and applies them across every tool call.
Write your rule in plain English
Cadreen's governance engine interprets rules written in natural language. Describe what should be allowed, what needs approval, and what should be blocked. The system translates your words into checks it enforces.
PII access requires DPO approval. Data deletion requests must be honored within 30 days. Cross-border data transfers are blocked by default.
PHI access requires approval and logging. Redaction in responses. Full audit trail for compliance reviews.
Cardholder data must never appear in responses. Financial tool invocations are logged and redacted. Access restricted to authorized roles.
Create the rule
curl -X POST https://api.cadreen.com/api/v1/maas/workspaces/{workspace_id}/policies \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{
"name": "PCI cardholder data",
"applies_to": "tools",
"rules": [{"condition": "Any action that could expose cardholder data", "effect": "require_human_approval"}]
}'To hide personal data in what a tool sends back, give the rule the effect redact. It never decides whether a call runs and never asks a person: emails, phone numbers, card numbers and national ids in the result are replaced before the result is shown or logged. If Cadreen can't tell whether a rule covers a call, it hides the data.
curl -X POST https://api.cadreen.com/api/v1/maas/workspaces/{workspace_id}/policies \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Hide customer details",
"applies_to": "tools",
"rules": [{"condition": "Any tool that looks up a customer", "effect": "redact"}]
}'See it enforced across surfaces
> Look up customer john@example.com's credit card number
I can't do that. Your workspace has a policy that blocks cardholder data.
If you need access, say "request access" and I'll escalate to your DPO.Audit trail for compliance reviews
Every governance decision is logged with full context. Query from any surface for compliance reviews. The audit trail is tamper-proof — every entry is hash-chained.
GET /api/v1/cadreen/audit: you get the steps of the workspace the key is for, and an admin or owner of the account, signed in, can ask for the whole account's with scope=account. Checking the chain is GET /api/v1/sal/chain/verify, for a signed-in person: an API key can't call it.