All
/api/compliance/* routes authenticate with your console session /
access token (the same login you use for the dashboard), not a
sk-orca-… relay key. Configure everything from the console; the REST
surface below is for automating evidence collection in CI.1. What the compliance api reference covers
Two route groups, two audiences:| Group | Auth | Audience |
|---|---|---|
/api/compliance/* | Console session | You + your auditors (in-workspace) |
/api/public/compliance/* | None (token / signature) | Anyone verifying a report |
2. Browse the catalog and check readiness
Start read-only. These three endpoints need no special role and cost nothing:GET /api/compliance/catalog — every framework you can target
GET /api/compliance/catalog — every framework you can target
Returns the framework registry. OrcaRouter ships packs for the major
security, privacy, and AI-governance regimes — including
soc2,
hipaa, gdpr, uk_gdpr, eu_ai_act, iso_27001, iso_42001,
nist_ai_rmf, nist_800_53, pci_dss, glba, ccpa, and a long
tail of regional privacy laws (PIPL, APPI, PIPA, LGPD, PIPEDA, DPDP,
and the US state acts). OWASP Top 10 for LLM Applications
(owasp_llm) ships as a first-class pack too — it materializes real
guardrail and firewall controls (prompt injection, insecure output,
sensitive disclosure, excessive agency) just like every other
framework.GET /api/compliance/packs — what you've installed
GET /api/compliance/packs — what you've installed
Lists the packs already materialized in this workspace, each with its
lifecycle mode (
observe or enforce) and the guardrail + firewall
policy it created.GET /api/compliance/readiness — your gap report
GET /api/compliance/readiness — your gap report
Scores your current posture against each framework’s checklist:
which controls your live guardrails and firewall rules already
satisfy, and which are still organizational gaps you must close
yourself. Read this before you install anything.
3. Install a pack
Installing a pack is the value moment: it writes a realGuardrail (text/data plane) and a WorkspaceFirewallPolicy plus rules
(tool-call plane) into your workspace, tagged to the framework. Both are
fully editable afterward — the pack is a starting point, not a locked
template.
flag,
firewall in shadow/log-only — so you can watch coverage before anything
blocks live traffic. When you’re ready, promote it:
POST …/packs/:key/controls to wire a
single control, POST …/packs/:key/update to re-sync after the catalog
changes, and DELETE …/packs/:key to uninstall.
4. Generate a signed evidence report
The report is the artifact you hand an auditor. Each one is rendered from your live posture, content-hashed with SHA-256, and signed with Ed25519 so it can’t be silently edited after the fact.pdf, json, and csv.
List and fetch reports with GET …/reports and GET …/reports/:id;
download the rendered file with GET …/reports/:id/download (Admin).
5. Let an auditor verify it — no account required
Three public endpoints make a report independently checkable by anyone holding the file:Get the public key
GET /api/public/compliance/pubkey returns the Ed25519 public key your
reports are signed with.Verify a signature
POST /api/public/compliance/verify checks a report’s signature and
content hash and tells the caller whether it’s been tampered with.Share with an auditor
Mint a read-only link from
POST …/reports/:id/share (Admin); the
auditor opens GET /api/public/compliance/share/:token — no login.6. Data residency
Residency here is the region your compliance evidence is stamped and stored under —us, eu, uk, ap, cn, or global. It governs
where reports live and from which region they may be served; a report is
withheld if read from a non-matching region. (This is an evidence-artifact
control, not geo-pinning of your inference traffic.)
GET …/residency (any member); changing it
is Admin.
7. Retention, erasure, and audit
The compliance plane is backed by the same data-lifecycle guarantees that apply across the gateway:Request-log retention
Request-log retention
Request logs are kept 30 days by default and 180 days maximum
— the gateway clamps anything longer. Retention feeds directly into
your readiness score.
Right to erasure
Right to erasure
An account-deletion request opens a 30-day grace period (the
default), after which the account’s PII is irreversibly scrubbed: the
cascade redacts the identifiers on retained request logs and purges the
user-scoped guardrail matches, firewall events, and agent-trace records.
Audit trail
Audit trail
A compliance report’s change-log section is drawn from the workspace
audit log, scoped to the report period. Member and admin emails are
masked by default in the exported report (e.g.
j•••@acme.com) unless
full PII is explicitly requested at generation time. See the
audit action catalog.Where to go next
Guardrail API
The text/data-plane policy a compliance pack materializes.
Firewall API
The tool-call policy plane the pack writes alongside it.
Control stack
How guardrails, firewall, and compliance compose into one posture.
Error codes
Every status the gateway can return, including paywall and role gates.
