Public API
CrewCheck SDK Quickstart
Route LLM traffic through CrewCheck for compliance-aware proxying, audit logging, policy packs, and trust scoring.
Measured in production on May 11, 2026: sub-100ms added gateway overhead at P95. Total round-trip latency still depends on your chosen upstream LLM provider.
Live-ready docs surface
The playground now falls back gracefully instead of exposing missing-config errors to visitors.
Create workspace
Set up your CrewCheck environment and choose a policy pack.
Generate API key
Create a server-side key from Settings → API Keys.
Route traffic
Point your SDK or proxy calls at the CrewCheck gateway.
const response = await fetch("https://crewcheck-api-production.up.railway.app/v1/proxy/chat", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": process.env.CREWCHECK_API_KEY!,
},
body: JSON.stringify({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Hello" }],
}),
});
const result = await response.json();Try It Now
Test the guardrails with a public demo request. Aadhaar-like input should block immediately. Gateway overhead is measured separately from provider latency.
Run the sample prompt to see CrewCheck return an allowed or blocked decision.
API Reference
Interactive reference generated from the live backend OpenAPI document.
Analytics
Trends, pass rate, top rules, trust distribution, and benchmark data.
AI Apps
Creation, budgets, trust score, packs, audit exports, and regulatory reports.
Gateway
Proxy traffic, provider-compatible routes, guardrail decisions, and cost metadata.
Platform
Auth, billing, API keys, circuit breakers, StreamGuard, scanner, and data products.
Core endpoint families
Auth
GET /v1/auth/me
Resolve the signed-in user, team id, and role.
AI Apps
GET/POST /v1/agents
Create AI Apps, update budgets, attach packs, export audit evidence, and inspect trust history.
Gateway
POST /v1/proxy/chat
OpenAI-compatible guarded chat with PII blocks, policy checks, cost logging, and provider routing.
Provider Proxies
POST /v1/proxy/openai/v1/chat/completions
Drop-in OpenAI, Anthropic, and compatible proxy routes.
Risk Checks
POST /v1/check
Direct input-output guardrail checks without a full provider call.
Policy Packs
GET/POST /v1/compliance-packs
List, create, upload PDF-derived packs, and manage individual rules.
Red Teaming
POST /v1/mystery-shopper/run
Run adversarial prompts, inspect results, and export PDF reports.
Approvals
GET /v1/approvals
Review escalated ledger items and record human decisions.
Analytics
GET /v1/analytics/*
Violation trends, pass rate, top rules, trust distribution, and industry benchmark data.
Billing
GET /v1/subscriptions/usage
Owner-only plan, usage, current subscription, and billing history endpoints.
Deal Unblock
POST /v1/unblock/questionnaires
Create buyer questionnaire runs, parse questions, generate cited answers, export packs, and create Evidence Rooms.
Public Evidence Rooms
GET /v1/public/evidence-rooms/{slug}
Token-gated buyer room API with email OTP unlocking for private sections.
API Keys
GET/POST /v1/api-keys
Owner/admin API key lifecycle for server-side integrations.
Circuit Breakers
POST /v1/circuit-breaker/*
Trip, reset, half-open, emergency stop, and inspect kill-switch history.
Shadow Mode
PATCH /v1/shadow/settings
Configure baseline traffic, bulk baselines, and shadow reports.
StreamGuard
GET/POST /v1/stream-guard
Kafka stream audit configs and stream event inspection.
DPDP Scanner
POST /v1/compliance-scanner/scan
Website scan, scan history, PDF export, and scanner Q&A.
Data Products
POST /v1/data-products/*
Consented vendor leads, research panel, performance events, snapshots, and consent records.
Integrations
GET /v1/integrations
Catalog connectors and organization integration settings.
Search
GET /v1/search
Global team-scoped search over apps and audit evidence.
Ledger
GET /v1/ledger/verify
Hash-chain verification and recent audit ledger entries.
Benchmark
GET /v1/public/benchmark
Public benchmark report and JSON or CSV downloads.