For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
Resources
Log inGet a demo
GuidesModelsAPI reference
GuidesModelsAPI reference
    • Get started
    • Install skills
  • Features
    • Projects
    • Management API keys
    • Cost governance and savings
    • Tool calling
    • Web search
    • Context compression
  • Security & Compliance
    • Customer blocklist
    • Geo-location routing
    • Prompt injection protection
    • Data loss prevention
    • Audit trail
    • Roles and permissions
    • Zero data retention
    • Provider terms

Get started

  • Overview
  • Introduction
  • Unified API
  • Linked Account
  • Merge Link
  • Use cases

Implementation

  • Sandboxes
  • SDKs
  • API access
  • Syncing data
  • Writing data
  • Data minimization
  • Supplemental data
  • Errors
  • Integration metadata

API reference

  • ATS
  • HRIS
  • Accounting
  • Ticketing
  • CRM
  • File Storage
  • Knowledge Base
  • Chat

Resources

  • Help Center
  • Merge.dev
  • Changelog
© Merge 2026Terms of usePrivacy policy
UnifiedAgent HandlerGateway
UnifiedAgent HandlerGateway
Resources
Log inGet a demo
On this page
  • How it works
  • Supported vendors
  • When to enable it
  • Enabling ZDR
  • Error shape
  • Checking ZDR status per model
  • FAQ
  • Next steps
Security & Compliance

Zero data retention

Restrict routing to vendors that don't retain or train on your data
Was this page helpful?
Previous

Roles and permissions

Next

Provider terms

Zero data retention (ZDR) is an org-level toggle in Gateway. When enabled, Gateway only routes your requests to vendors that have a contractual zero data retention agreement, so your prompts and completions are not stored by the vendor, used for model training, or used for model improvement.


How it works

  • Org-level toggle. ZDR is a single setting on your organization. It applies to every project, every API key, and every request.
  • Routing is filtered. When ZDR is on, Gateway restricts each request’s routing candidates to ZDR-supported vendors only. Other vendors are never selected, even if they appear in your routing policy.
  • Fail-closed. If a request resolves to a routing policy with no ZDR-supported vendors, Gateway rejects it with HTTP 400 and an error message that includes the phrase “Zero Data Retention”. Gateway does not silently fall back to a vendor without ZDR.

Supported vendors

Gateway supports ZDR for the following vendors:

  • OpenAI
  • Azure OpenAI
  • Amazon Bedrock
  • xAI
  • Moonshot AI
  • Google Vertex AI
  • Baseten
  • Writer
  • Parasail
  • Fireworks AI

More vendors are added as agreements are signed. For the authoritative per-model list, call GET /v1/models and filter on the zero_data_retention field on each model object.

ZDR support is tracked at the vendor level in Gateway’s catalog. A vendor with ZDR support means Merge has a zero data retention agreement in place with that vendor that covers traffic routed through Gateway.


When to enable it

Turn ZDR on when your workload has any of the following characteristics:

  • Regulated data. You send PII, PHI, or financial data that falls under HIPAA, GDPR, SOC 2, PCI, or a similar framework.
  • Customer contracts that prohibit training on their data. Many enterprise agreements forbid third-party model providers from retaining or learning from customer content.
  • Regulated industries. Healthcare, legal, financial services, and government workloads that require an audit trail showing no vendor retention.
  • Confidential product content. Pre-release roadmap, source code, internal strategy docs, or anything covered by an NDA.
  • Customer-facing AI features where data provenance matters. If you market your product as “your data stays yours,” ZDR lets you enforce that claim at the routing layer rather than through per-vendor configuration.

If your org uses BYOK for a vendor, Gateway treats that vendor as ZDR-compliant for your org. BYOK traffic goes to the vendor under your own account and agreement, so data retention is governed by your contract with the vendor directly.


Enabling ZDR

Open the Vendor configuration page and flip the Zero data retention toggle. The change takes effect on the next request. No code changes are required on your side.

Only org admins can change this setting


Error shape

When ZDR is on and a request cannot be routed to a supported vendor, Gateway returns:

1{
2 "error": {
3 "type": "invalid_request_error",
4 "message": "Zero Data Retention: no eligible vendor is available for this request.",
5 "code": 400
6 }
7}

Handle this like any other invalid_request_error. The stable signal to match on is HTTP 400 with a message containing Zero Data Retention.


Checking ZDR status per model

Each model exposes a zero_data_retention boolean. Filter the model list to see exactly which models your app can use while ZDR is on.

1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5models = client.models.list()
6zdr_models = [m for m in models.data if m.zero_data_retention]
7
8for m in zdr_models:
9 print(m.id)

FAQ

Is ZDR per-project or per-request?

Neither. ZDR is an org-level toggle. When enabled, it applies to every project, every API key, and every request from your organization.

What happens to routing policies that include vendors without ZDR?

Gateway filters the policy’s candidate list down to ZDR-supported vendors at request time. If at least one supported vendor remains, the request proceeds. If none remain, Gateway rejects the request with HTTP 400.

How does ZDR interact with BYOK?

If your org has BYOK configured for a vendor, Gateway treats that vendor as ZDR-compliant for your org. BYOK traffic uses your own provider account, so retention is governed by your contract with the vendor.

How do I find out which models support ZDR?

Call GET /v1/models and read the zero_data_retention field on each model object. That field is the authoritative source and is updated automatically as new vendors and models are added.

Will more vendors get ZDR support over time?

Yes. Merge adds vendors as zero data retention agreements are signed. The zero_data_retention field on the model object is the source of truth, so your code does not need to be updated when new vendors are added.

Does enabling ZDR affect latency or cost?

No directly measurable effect. ZDR changes which vendors are candidates, not how requests are processed. If your preferred vendor is not ZDR-supported, traffic shifts to a supported vendor, which can change cost and latency based on that vendor’s pricing and performance.


Next steps

Provider terms

Review the terms of service for each AI provider available through Gateway

Routing policies

Configure failover, priority, and intelligent routing across supported vendors

Projects

Organize workloads, set budgets, and manage per-project configuration