Security, privacy and data residency
How patient data is protected: EU data residency, project isolation, pairwise ids, credentials, consent, provenance, an audit visible to the patient, and the limits of the private beta.
Medical data is the most sensitive data an application can hold. This page lists how Anpheros Platform protects it today — only what is implemented — and what is still limited during the private beta.
Data residency
- All platform data is stored and processed in the European Union: the service and its databases in Google Cloud
europe-west4(Netherlands), the webhook delivery queue ineurope-west3(Frankfurt) and the append-only export of the access log in the BigQuery EU location. - US data region: available on request for production customers under a HIPAA business associate agreement (see below); US patient data then never leaves the US region.
- Documents are stored in an EU storage bucket encrypted with a customer-managed encryption key (CMEK). Originals are immutable after finalisation; their SHA-256 checksum and size are recorded.
Isolation between applications
- Every API key belongs to one project. A project sees only the patients it created — in the sandbox, including its own copy of synthetic patients, which no other project can see.
- Pairwise identifiers: each project receives its own id for the same person; internal ids never leave the platform, so ids cannot be correlated between applications.
- A record you cannot reach answers
404, never403, so the existence of a patient cannot be probed. - Sandbox and production are separate databases. A sandbox key (
sk_test_) physically cannot reach real patients. - With the patient's consent an organisation reads the whole record, including what other organisations wrote, but can change or delete only what it wrote itself.
Credentials
- API keys are shown once and stored only as a SHA-256 hash. Keys have
read/writescopes and never cross their environment. - OAuth 2.1 with mandatory PKCE (S256); the
redirect_urimust be registered exactly. Access tokens last 30 minutes, refresh tokens 30 days and rotate on every use. - Refresh-token reuse detection: presenting a refresh token that was already used revokes the whole token chain.
- Token responses carry
Cache-Control: no-store. OpenID Connectid_tokens are signed with RS256; public keys are published at/oauth/jwks.
Consent, provenance and audit
- A patient grants an application access on a hosted consent page, choosing the record and the duration (30, 90, 180 or 365 days). Scopes are per resource type and action, optionally filtered by category. Every grant is mirrored as a FHIR
Consentresource. - Revocation takes effect on the next request; the application cannot refresh back in.
- Every write produces a
Provenanceresource: who wrote it (patient, practitioner, device, import or AI), for which organisation, from which source system. - Every read is logged and visible to the patient, including reads made with a project's own API key, and including context built for AI models.
Transport and web security
- HTTPS only, with HTTP Strict Transport Security. API responses carry a restrictive Content-Security-Policy,
X-Content-Type-Options: nosniff,X-Frame-Options: DENYand a strict referrer policy. - Webhook deliveries are signed with HMAC-SHA256 over the timestamp and body; receivers should reject signatures older than 5 minutes. Events carry ids and versions, never clinical content.
- Rate limits: 600 requests per minute per credential and per IP; JSON bodies up to 2 MiB; documents up to 25 MiB.
Search engines and AI crawlers
Public pages (anpheros.com, the platform presentation and this documentation) are open to search engines and AI crawlers. The API, the dashboard, the OAuth and consent pages and the patient app (app.anpheros.com) are excluded with noindex and robots.txt rules; none of them return patient data without authentication.
HIPAA (US clinics)
For a clinic in the United States, Anpheros is a Business Associate. What is in place, mapped to the HIPAA Security Rule:
| Safeguard | How Anpheros does it |
|---|---|
| Assigned responsibility, risk analysis, written policies (§164.308) | A named Security Officer; a yearly risk analysis; ten written policies (access, encryption, logging, incident response, breach notification, retention and backup, training, devices, emergency access, vendors), kept six years |
| Unique user identification, access control (§164.312(a)) | Every key, token and person has its own identity; projects see only their own patients; consent scopes enforced on every read; MFA or SSO required for organisations with a production project; automatic logoff on the dashboard |
| Audit controls (§164.312(b)) | Every read and write logged, hash-chained, exported append-only; visible to the patient |
| Integrity (§164.312(c)) | Versioned resources, provenance on every write, immutable documents with SHA-256 |
| Transmission security (§164.312(e)) | TLS 1.2+, HSTS, signed webhooks, HTTPS-only deliveries |
| Encryption at rest | Database and backups encrypted; documents under a customer-managed key |
| Contingency plan (§164.308(a)(7)) | Daily backups, point-in-time recovery, restore drill every 90 days with recorded times |
| Breach notification (§164.410) | The Covered Entity is notified within 5 business days by our BAA (60 days by law) |
| Business associate chain (§164.308(b)) | Google Cloud under its BAA; the subprocessor list is in the BAA annex |
A Business Associate Agreement and a US data region are available on request for production customers (write to [email protected]); production for US patient data opens after the BAA is signed. The sandbox holds synthetic patients only, so developers in the US can build today without a BAA. Anpheros is not certified against SOC 2 or HITRUST; a SOC 2 Type II audit is planned when a hospital customer requires it.
Current limits (private beta)
- The service runs across several zones of
europe-west4; the database runs in one zone, without automatic failover, with point-in-time recovery and backups stored outside that zone. No contractual SLA yet: paid plans have a best-effort service level, and availability is public on the status page. - Production keys are issued to verified organisations with a signed data processing agreement; beta partners start with synthetic data.
- SMART EHR launch and the OpenID
nonceparameter are not supported yet.
Related
- Trust at Anpheros Platform: what we have, what we don't yet, what's next
- GDPR and health data for developers
- Medical data provenance explained: who wrote what, and how to record it
- Consent and access model
- Authentication and OAuth
- Limits and rate limits
- Reliability, status and incidents: monitoring, backups, incident communication
- Architecture
- The European Health Data Space (EHDS) for developers
- Evaluating a medical data platform: questions for hospitals
- A patient data platform for clinics and hospitals
Ask your AI
Paste this into Claude, ChatGPT, Cursor or Claude Code. Your assistant reads this guide and adapts it to your code.
Read https://developers.anpheros.com/guides/security.md and help me apply this guide to my own project. Use the Anpheros sandbox (base URL https://platform.anpheros.com) with my API key from the ANPHEROS_KEY environment variable, never written in the code. Give me complete, runnable code, the response I should expect, and how to fix the errors in https://developers.anpheros.com/guides/troubleshooting.md if a call fails.Open in ClaudeOpen in ChatGPTThis guide as MarkdownBuild the whole integration with an AI coding tool
Try it free in the sandbox · first FHIR call in 5 minutesFree · 30 synthetic patients · no cardYour first API call in 2 minutes →
