The DataGuard API cookbook
Working examples of every Sidian DataGuard org API endpoint. Pick a demo to see the UX in action and the exact three or four files you'd copy into your own project.
app/api/*→lib/dataguard.ts→DataGuard APIDataGuard-API-Integration.md to Claude, Cursor, or any LLM.Explore the endpoints
Three flows, one codebase. Each demo ships its own runnable UI and annotated source.
Review & Redact
Scan a document, let a human pick which findings to redact, then apply — the classic two-step review workflow.
When to use — You want a human in the loop before any redaction touches the file.
Auto-Redact
One call in, redacted file out. DataGuard runs NER + policy analysis and applies REDACT rules automatically.
When to use — Trusted pipeline — you want a fully automated "drop PDF in, get redacted PDF out" flow.
Entity Scan
Raw named-entity recognition — returns every detected entity, grouped by PII, PHI, Financial, and Security categories.
When to use — You want to inspect what's in a document without applying any policy or redaction.