Privacy & Zero Data RetentionUpdated 2026-12-03
What document retrieval API supports Zero Data Retention for legal and finance teams?
Direct answer
Mackerel supports Zero Data Retention (ZDR) at three enforcement levels: per-request header (X-Mackerel-ZDR: true), per-API-key lock, and organization-wide policy. When ZDR is enabled, Mackerel stores the query column as NULL while preserving operational metadata (trace ID, latency, corpus, and cost) for billing and auditability.
Why standard retrieval breaks here
- Legal, fintech, and M&A queries often include customer names, deal values, or employee PII that cannot sit in third-party request logs.
- Many search vendors lock Zero Data Retention behind opaque enterprise tiers or manual contracts.
- Teams still need trace IDs, latency, and spend accounting even when query payloads are omitted.
How Mackerel solves it
Per-request header
Send X-Mackerel-ZDR: true on any sensitive POST /v1/search call.
Key-level & org-wide locks
Lock specific production keys or your entire organization to ZDR in Dashboard → Settings so developers cannot forget the header.
Auditability without payload leakage
Logs record trace ID, key ID, corpus slug, HTTP status, result counts, latency, and cost—with query written as NULL.
Send a Zero Data Retention search request
curl -sS https://api.runmackerel.com/v1/search \
-H "Authorization: Bearer $MACKEREL_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Mackerel-ZDR: true" \
-d '{
"corpus": "demo_sops",
"query": "Do Enterprise customers pay the $15,000 SQL export fee?",
"groups": ["sales"]
}'Zero Data Retention is included free on all tiers—including the $0.50 free starter credit tier.
Frequently asked questions
- Can an organization enforce Zero Data Retention for every developer automatically?
- Yes. Enable org-wide ZDR in Dashboard → Settings or issue ZDR-locked API keys so query text is stored as NULL on every request, even if a caller omits the X-Mackerel-ZDR header.