Skip to main content

Get started in three steps

Every result is a verdict. Pass. Fix. Block. Escalate. Enforce your first piece of content with the ZeroDrift Enforcement API.

Step 1: Get your API key

API keys live in ZeroDrift Command. Sign in, open Settings, then under API select Keys.
Command Settings → API → Keys empty state with Create first key
  1. Select Create first key (or New API key if you already have keys).
  2. In the Create API key dialog, enter a Key name, choose Permissions (Full access or Read only), and set Rulepacks.
  3. Select Create, then Copy the key immediately — Command shows the full value only once.
Export it once and every sample on this site works as written:
The key goes in the x-api-key header on all API requests.

Step 2: Send content for enforcement

The quickest way to test the API is with a text snippet:
You’ll receive a job_id in the response:
mode is required. Enforcement runs on Anchor. "model_engine": "anchor_3_0" is Flagship (the default; older notes called this Base). Mini is anchor_3_0_mini; Max is anchor_3_0_max. Custom rules require Max — see Enforce Content. See Choose a model. Use "mode": "async" for a job you poll; for short content, "mode": "sync" returns the completed verdict in a single response.
The same endpoint can enforce policies in other regulated industries:

Step 3: Get the results

Use the job_id to retrieve the results:
Poll until status is completed or failed. A completed response includes:
Read result.overall_status: approved is Pass, needs_changes is Fix, and do not send is Block. Anything you would not apply automatically, escalate to a human. See Get Verdict.

Next steps

Explore the full API capabilities:

Use Cases

What teams enforce with the API, and which guide to follow for each.

Concepts

Verdicts, rulepacks, policies, and adapters in one page.

Enforce Content

Full request and response details for the enforcement endpoint used above.

Rule Packs

Browse the managed rule pack catalog.

Train an Adapter

Import a policy, train a policy-specific adapter, and enforce against it.

SDKs

Produce a typed Python or TypeScript client from the OpenAPI spec.

MCP Connectors

Import a policy from Notion, Linear, Confluence, or Google Drive instead of uploading a file.
Need help? Contact us at support@zerodrift.ai