Claude API Data Privacy Compliance Checklist
If you're integrating the Claude API into a product that touches customer data, you need a clear answer to one question before you ship: where does that data go, who can see it, and how long does it stick around? This checklist walks through the concrete items you should verify — data retention settings, PII handling, data processing agreements, regional requirements, access control, and logging — so you can build a compliant integration instead of guessing.
This isn't legal advice. It's an engineering and procurement checklist for teams that need to pass a security review, respond to a customer's compliance questionnaire, or simply avoid shipping something that leaks sensitive data into a place it shouldn't be.
Data flow: know exactly what you're sending
Before anything else, map the actual payload that leaves your system.
- Prompt content — does it include user-submitted text, documents, or support tickets that might contain PII, health information, or financial data?
- System prompts — do they embed internal business logic, customer names, or account identifiers?
- Tool call results — if you're using tool use, does the model receive database rows, API responses, or internal documents that weren't meant for a third party?
- Attachments — images, PDFs, or other multimodal input often carry metadata (EXIF, filenames) you didn't intend to send.
Write this down as an actual data flow diagram, even a simple one. Reviewers and auditors will ask for it, and it forces you to notice things like "oh, we're passing the full support ticket thread including the customer's email signature."
Data retention and training use
This is the item every compliance questionnaire asks about first.
- Confirm whether API-submitted data is used to train models. For commercial API usage, the standard position from major providers is that API inputs/outputs are not used for training by default — verify this against the current provider terms, not an old blog post.
- Confirm how long prompts and completions are retained for abuse monitoring or debugging, and whether you can request a shorter retention window.
- If you're routing requests through a wrapper or middleware layer (including SubToAPI), check what that layer itself logs. A hosted API layer like SubToAPI passes requests straight through to Claude and exposes usage metadata (tokens, latency, request counts) for billing and monitoring — confirm with any vendor exactly what request/response bodies they persist and for how long.
- Document retention periods for your own logs too. If you log full prompts for debugging, that log is now part of your compliance surface.
PII and sensitive data minimization
The cheapest compliance control is not sending data you don't need to send.
- Strip or redact direct identifiers (names, emails, phone numbers, account IDs) from prompts when the model doesn't need them to complete the task.
- Use placeholder tokens (
CUSTOMER_ID_1) in the prompt and resolve them back to real values client-side after the response comes back. - For support or chat use cases, separate the "understand the request" step from the "take action on the account" step, so the model only ever sees the minimum context required.
- Avoid passing full documents when a summary or extracted snippet is sufficient.
function redact(text) {
return text
.replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]")
.replace(/\b\d{3}-\d{2}-\d{4}\b/g, "[ssn]")
.replace(/\b\d{10,16}\b/g, "[account_number]");
}
const safePrompt = redact(rawCustomerMessage);
Build redaction as a shared utility used by every call site, not something each team reinvents.
Contracts: DPA, subprocessor status, and region
- Data Processing Agreement (DPA) — if you process EU personal data, you need a signed DPA with every vendor in the chain, including the API provider and any wrapper layer you use. Ask directly: "Will you sign our DPA?" and get it in writing before launch.
- Subprocessor list — your own privacy policy likely needs to disclose subprocessors. Claude API access, any hosted wrapper, and your cloud infrastructure all count.
- Data residency — check where requests are processed and where logs are stored. If you have EU-only customers, confirm whether regional processing is available or required.
- Audit rights — enterprise contracts often require the right to request a security questionnaire or SOC 2 report from vendors. Confirm what documentation each party in your stack can provide.
Access control and key management
- Every application or environment should have its own API key, scoped to least privilege. Don't share one key across staging, production, and three internal tools.
- Rotate keys on a schedule and immediately on employee offboarding.
- If multiple team members need to generate or revoke keys, use a system with team-level role-based access rather than a shared root credential passed around in Slack.
- Never embed API keys in client-side code — route all Claude calls through your backend.
SubToAPI issues scoped application keys (sub_live_...) per app under a single account, with team seats so you're not sharing one root key across your org — see /docs/quickstart for setup and /pricing for plan details.
Logging and audit trail
Compliance reviewers want proof, not promises.
- Log every API call with a timestamp, the calling service/user, and a response status — but not full prompt content unless you have a specific, justified retention policy for it.
- Keep usage and billing records separate from content logs. Token counts and request metadata are low-risk to retain long-term; raw prompt text is higher-risk.
- If something goes wrong (a wrong answer sent to a customer, a flagged response), you need enough log context to reconstruct the incident without needing to store every prompt indefinitely.
- Build an incident response runbook: who gets notified if a key leaks, what the rotation process is, and how fast you can revoke access.
Vendor evaluation checklist
When evaluating Claude API access directly versus a hosted wrapper, run through this list for each option:
- [ ] Will they sign a DPA?
- [ ] What's their data retention policy for requests/responses?
- [ ] Is API data used for model training? (should be no, by default)
- [ ] Do they support per-application scoped API keys?
- [ ] Can you export usage/audit logs?
- [ ] Do they publish a security/subprocessor page?
- [ ] What's their incident disclosure process?
Review the vendor's docs (for SubToAPI: /docs) and pricing terms (/pricing) directly rather than relying on marketing copy, and get commitments in writing before you integrate.
Putting it into practice
Treat this checklist as a living document, not a one-time audit. Revisit it whenever you add a new data source to a prompt, add a new tool integration, or onboard a customer with specific regulatory requirements (HIPAA, GDPR, SOC 2). The actual implementation work — redaction utilities, scoped keys, log retention policies — is small compared to the cost of retrofitting compliance after a customer audit flags a gap.
questions
Does the Claude API use my prompts to train models? By default, commercial API usage is not used for model training — but always verify against the current provider terms for your specific plan, since policies can differ between consumer and API products.
Do I need a DPA if I only process data for EU customers indirectly? Generally yes. If personal data of EU residents flows through any part of your stack, including a hosted API wrapper, you need a DPA with each processor in that chain, not just your primary vendor.
What's the single highest-impact compliance step I can take? Data minimization — redact or omit PII from prompts before they're sent, and use scoped API keys per application so a leaked key has limited blast radius.