Trust / Field guide

Zero data retention

Process customer content without storing request bodies, training on inputs, or logging sensitive data.

Content never reaches storage

CONTENT NEVER PERSISTEDREQUESTprompt bodyuser dataZDR modePROCESSRESPONSEcompletionreturnedContent discarded after response

The request body is processed and discarded without persisting content.

01 / CONTEXT

Why it matters

Zero data retention means a service handles customer content transiently and discards it after returning a response. The concept is most visible in LLM API providers that offer ZDR modes, but the same principle applies whenever a SaaS product needs to prove it is not persisting sensitive inputs.

ZDR is not the same as short retention or deletion on request. It means request bodies and content never reach a persistent store. Metadata like timestamps, account identifiers, and API usage counts may still be recorded for billing, abuse monitoring, and system operations. Customers ask for ZDR during security questionnaires, compliance reviews, and procurement.

02 / DESIGN

Decisions to make

  • Define which data classes are covered: request bodies, response content, error messages, or specific field types.
  • Choose the account scope: organization-wide policy, per-workspace setting, or annotated API requests.
  • Decide what metadata remains: request counts, latency, error codes, and billing dimensions.
  • Identify legal or abuse-monitoring exceptions where content may be logged temporarily.
  • Plan how ZDR interacts with debugging, error trackers, analytics, and third-party processors.
03 / IMPLEMENTATION

Build checklist

  • Mark ZDR requests in the request path and enforce the flag at every logging boundary.
  • Strip sensitive fields from structured logs, traces, and queued events.
  • Configure error tracking and observability tools to redact or skip content under ZDR.
  • Verify that LLM provider settings and sub-processor contracts honor the ZDR commitment.
  • Test that replay queues, debug snapshots, and crash reports do not persist flagged content.
04 / WATCH FOR

Common mistakes

  • Logging request bodies in application logs while claiming ZDR at the API layer.
  • Sending ZDR-covered content to an error tracker or analytics service with default configuration.
  • Using a third-party LLM or processor without confirming its own ZDR or no-training policy.
05 / GO DEEPER

Tools & references

4 starting points to compare or study. Check fit, maintenance, terms and current capabilities before choosing one.

BUILDING THIS NOW?

Explore the SaaSLayer approach.

See the services and developer guides behind our AWS backed SaaS building blocks.

Read SaaSLayer docs
NEXT FEATUREIP allowlisting