Skip to main content

Overview

The ZeroDrift Enforcement API enforces regulations, company policies, and security controls on content and communications. Every result is a verdict. Pass. Fix. Block. Escalate. The API returns the verdict; Guard applies it inline.

Authentication

All API endpoints require authentication via API Key in the request header. Your Enforcement API key is provisioned when your account is created.

Quick Start

Enforcement runs in two steps. Send content and get a job ID. Poll for the verdict.
  1. Send content with Enforce Content — the response returns a job_id
  2. Poll Get Verdict until the job is completed or failed

Policy

Import a policy and ZeroDrift extracts enforceable rules. Review, activate, then enforce. Training Studio is optional and Flagship-only (model_engine: "anchor_3_0"). On Max (anchor_3_0_max), skip training and pass the import in validation_scope.imports. See Choose a model and Pricing.
  1. Upload a policy document (PDF, DOCX, or plain text), or sync one from a connected MCP source
  2. Poll until AI rule extraction completes
  3. Review or simulate the rules, then activate them
  4. Enforce with the import ID in validation_scope.imports and model_engine set to anchor_3_0 (Flagship) or anchor_3_0_max (Max)
  5. Optionally on Flagship, start adapter training and poll training status until the adapter succeeds. Training does not change whether activated rules run.
You can also create and edit custom rules directly via POST /api/policies/rules and PATCH /api/policies/rules/{rule_id}. Untrained custom rules run on anchor_3_0_max. See Enforce Content.

Activity

Every verdict is logged in Command. The Activity endpoints read that log for the last 30 days.

OpenAPI specification

A machine-readable OpenAPI 3.0 document of the public API is available at /openapi.json. See OpenAPI specification for the operations it covers, and SDKs to produce a typed Python or TypeScript client from it.

Rate Limits

See Errors for 429 handling. Contact support@zerodrift.ai for higher limits.

Support

For API support or to request higher rate limits, contact: support@zerodrift.ai For data handling and retention, see Data Retention.