Claude API GDPR Compliance Checklist for Developers
If you're building a product on the Claude API and any of your users are in the EU, you need a clear answer to "is this GDPR compliant?" before legal or a customer's security team asks. The honest answer is: Claude API usage can be GDPR compliant, but compliance isn't something the API gives you automatically — it depends on how you configure data handling, what you log, who you share data with, and what paperwork you have in place.
This checklist walks through the concrete steps to get there, organized the way an auditor or a cautious enterprise customer would actually ask about it.
1. Confirm the legal basis for processing
Before anything technical, write down why you're sending user data to Claude. Common bases:
- Contract performance — the AI feature is part of the service the user signed up for.
- Legitimate interest — internal tooling, support automation, analytics.
- Consent — optional AI features, marketing copy generation, anything not essential to the core service.
This matters because it determines what you need to disclose in your privacy policy and whether you need an explicit opt-in before calling the API with personal data.
2. Get a Data Processing Agreement (DPA) in place
Under GDPR, any third party that processes personal data on your behalf is a "processor," and you need a DPA with them. This applies to:
- Anthropic (or whoever actually runs the model inference)
- Any middleware/API layer you use in front of it
- Your cloud hosting provider, logging provider, and analytics tools
Check the DPA for:
- What data categories are covered
- Retention periods and deletion commitments
- Sub-processor list and whether you're notified of changes
- Audit rights
If you're using a gateway like SubToAPI in front of Claude, confirm its DPA separately — it's a distinct processor in your chain, not a replacement for Anthropic's.
3. Map international data transfers
Claude API traffic is usually processed outside the EU. Under GDPR Chapter V, that requires a valid transfer mechanism — typically Standard Contractual Clauses (SCCs), sometimes supplemented by a Transfer Impact Assessment (TIA) if you're being thorough.
Checklist items:
- Confirm SCCs are referenced in the DPA, not just mentioned informally
- Document where the data actually flows (which regions, which subprocessors)
- Keep a short TIA on file — even a one-page internal memo is better than nothing if you're ever audited
4. Minimize what you send to the model
The cheapest compliance win is sending less personal data in the first place.
- Strip names, emails, phone numbers, and IDs from prompts when they're not needed for the task
- Use placeholders/tokens and resolve them after the response comes back
- If you're doing retrieval-augmented generation, filter documents before they hit the prompt — don't rely on the model to "ignore" sensitive fields
function redactPII(text) {
return text
.replace(/\b[\w.+-]+@[\w-]+\.[\w.-]+\b/g, "[EMAIL]")
.replace(/\b\d{3}-\d{2}-\d{4}\b/g, "[SSN]");
}
const safePrompt = redactPII(userInput);
This isn't a complete anonymization pipeline, but it's the kind of control an auditor expects to see documented, even at a basic level.
5. Control logging and retention
Prompt and response logging is where most GDPR gaps actually live, because it's invisible unless you go looking.
- Decide a retention period for request/response logs and enforce it with automated deletion, not a manual process someone forgets
- Don't log full prompts/responses in plaintext application logs by default — log metadata (timestamps, token counts, latency) separately from content
- If you need content logs for debugging, encrypt them at rest and restrict access to a named group
SubToAPI's dashboard surfaces usage metadata — tokens, latency, request counts — per API key without requiring you to build your own logging pipeline for that layer, which reduces the amount of raw content you need to store yourself just to get operational visibility. See /docs for what's captured.
6. Handle data subject rights requests
GDPR gives users the right to access, correct, and delete their data. For an AI feature, that means you need a way to:
- Identify which stored prompts/logs relate to a specific user (so pseudonymous logging has to be reversible on your side, with a controlled key)
- Delete or redact those records within the legal window (typically one month)
- Confirm whether the underlying processor (Anthropic, your API gateway) retains anything that needs a parallel deletion request
Write this down as an actual runbook, not a policy sentence. "We will delete data within 30 days" is not a process — a documented step-by-step is.
7. Secure the keys and access paths
Access control is part of GDPR's security requirement (Article 32), not just a nice-to-have.
- Use per-application or per-environment API keys instead of one shared key everywhere
- Rotate keys on offboarding and on a schedule
- Restrict who on the team can view/export usage logs
If you're managing API access for a team, a dashboard with scoped keys and seat-based access control (rather than a shared .env secret) makes this much easier to demonstrate during a security review. That's the core of what SubToAPI provides on top of raw Claude API access — see /pricing for how seats and keys map to plans.
8. Have a breach notification plan
GDPR requires notifying the relevant authority within 72 hours of becoming aware of a breach involving personal data. For an API integration, that means knowing in advance:
- Who gets alerted if API keys leak or logs are exposed
- How you'd determine which users' data was affected
- A template notification ready to adapt, not written from scratch under pressure
Quick checklist summary
- [ ] Legal basis for processing documented
- [ ] DPA signed with Anthropic and any API gateway/middleware
- [ ] SCCs confirmed for international transfers, TIA on file
- [ ] PII minimized/redacted before hitting the prompt
- [ ] Logging scoped, retention enforced, content encrypted at rest
- [ ] Data subject request runbook written and tested
- [ ] Per-app API keys, rotation policy, access restricted
- [ ] Breach notification plan documented
None of this is exotic — it's the same checklist you'd run for any third-party API that touches personal data. The Claude API doesn't require anything unusual; it just requires you to actually do the basics instead of assuming an AI vendor's own compliance covers your whole pipeline.
questions
Does using the Claude API automatically make my app GDPR compliant? No. Compliance depends on your data handling — what you log, where it's stored, your DPA, and how you handle user rights requests. The API itself is a processing tool, not a compliance guarantee.
Do I need Standard Contractual Clauses if I use a wrapper or gateway in front of Claude? Yes, if that gateway or the underlying model processes EU personal data outside the EU, you need a valid transfer mechanism (usually SCCs) with every processor in the chain, not just the model provider.
What's the fastest way to reduce GDPR risk without rebuilding my whole integration? Minimize personal data in prompts, shorten log retention, and use scoped API keys per application instead of one shared key. These three changes address most of the common audit findings without architectural changes.