Stack components

Does the Anthropic API Sign a BAA? Using Claude Models with Patient Data

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: Yes, with conditions. Anthropic offers a Business Associate Agreement (BAA) for its first-party Claude API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026), and PHI may be processed only in an organization with a signed BAA and HIPAA readiness turned on, using supported features. (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) Sign the BAA in the Claude Console or through Anthropic sales before any patient data reaches Claude.

If your vibe-coded app summarizes intake forms, drafts patient replies, cleans up dictation, or answers staff questions about a chart, it probably sends text to a large language model (an AI model that reads and writes text). If the code contains an Anthropic API key (a password-like string, often stored as ANTHROPIC_API_KEY) or calls a Claude model by name, this page is about your app.

The short version: Anthropic does sign a BAA for its own API. But Anthropic says the BAA covers only the single organization that accepted it (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026), it covers some API features and not others, and it does not cover Claude Code, which you may have used to build the app. Each of those limits matters for a practice app.

What Anthropic says, in its own words (checked November 15, 2026)

Anthropic's privacy center names the API as one of the services its BAA covers:

“Anthropic provides a BAA covering our HIPAA-ready services, such as use of our first-party API, Claude in Microsoft Foundry, or Enterprise plans.”

Anthropic's API documentation adds the condition that matters most: the BAA alone is not the switch. “With a signed BAA and a HIPAA-enabled organization, you can use supported API features to process PHI while supporting your organization’s HIPAA compliance.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)

How you turn it on

Anthropic describes two paths. Its API docs say “Eligible organizations can review and execute the BAA and enable HIPAA readiness directly from the Claude Console.” (Anthropic, API and data retention - Claude Platform Docs, verified November 27, 2026) In that self-serve path, someone who can legally sign for your practice must accept it. The docs tell you to “accept the agreement as an authorized legal representative of your organization” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). The other path is sales: “If your organization requires a negotiated or custom BAA, or if self-serve enablement isn't available for your organization, contact the Anthropic sales team” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)

Anthropic's privacy center describes the order differently: “To use the 1P API with PHI, your organization’s Primary Owner will need to sign a BAA and then reach out to your Anthropic contact or our Sales team to get this turned on.” (Business Associate Agreements (BAA) for Commercial Customers | Anthropic Privacy Center, verified November 27, 2026) Because the two pages read differently, confirm with Anthropic which path applies to your organization, and that HIPAA readiness is actually on, before any PHI is sent.

The switch cannot be undone: “Once HIPAA readiness is enabled for your organization, the configuration is permanent and cannot be disabled by an administrator.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) It also applies to the whole organization, not to one app or one key: “HIPAA readiness is enforced at the organization level. If you need both HIPAA-ready and general-purpose API access, use separate organizations for each.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)

Which features are covered

Anthropic publishes a feature eligibility table. The standard Messages API, the basic call that sends a prompt and gets Claude's reply, is listed as HIPAA eligible (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Several other features are not. Anthropic's privacy center lists “Batch API, Files API, Skills API, Code Execution, Web Fetch ❌ Not covered under BAA” (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026) PDFs are eligible only when sent inline, inside a Messages API request, not when uploaded through the Files API (a separate way to upload files) (Anthropic, API and data retention - Claude Docs, verified November 15, 2026), and Claude Managed Agents is not eligible for HIPAA at all (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Beta features are generally not covered unless the table lists them as eligible (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Anthropic also says “Your signed BAA is the official source of truth for which features are covered.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)

The API also enforces the list. A 400 error is the API refusing a request: “When a HIPAA-enabled organization sends a request that includes a non-eligible feature, the API returns a 400 error to prevent accidental use of features not covered by your BAA” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)

What is not covered

What this means for your app

Under HIPAA, a company that creates, receives, maintains or transmits PHI for your practice is a business associate (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and your practice needs satisfactory assurance, in practice a BAA, before it lets one handle PHI (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). Anthropic offers that BAA for the API. The work is making sure every path patient data takes to Claude runs through the covered organization and the covered features.

How a vibe-coded app usually wires in Claude

A common setup: the coding agent stores the API key on the server, writes a small server route that receives text from your screens, adds a system prompt (standing instructions such as summarize this intake for the physician), and calls the Messages API. Anthropic says PHI in this kind of use typically appears in “In the context of the Claude API, PHI typically appears in message content (prompts and Claude’s responses), attached files (images, PDFs), and file names or metadata associated with message content.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) In a practice app, that means:

  • Prompts. Intake answers, portal messages, dictated notes, medication lists, pasted lab values.
  • Attachments. Photos of referral letters or insurance cards, and PDFs of outside records.
  • File names. A scan named with the patient's name and date of birth is PHI before Claude reads a word of it.
  • Claude's replies. A drafted note or message about a patient is PHI too, and so is every copy your app saves or logs.

Places PHI should not go

Anthropic lists fields that are not expected to hold PHI under the BAA: “The following fields are not expected to contain PHI under the BAA: workspace names, user information (name, email, phone number), billing data, and support tickets.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) So do not name a workspace or project after a patient, and do not paste a patient's prompt into a support ticket when something breaks. If your app uses structured outputs (forcing Claude to answer in a fixed format), Anthropic says “Do not include PHI in JSON schema definitions.” (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) A coding agent that builds a dropdown of today's patients into the schema has put names in the one place Anthropic says PHI must not go.

The route matters as much as the model

The BAA covers your HIPAA-enabled organization calling Anthropic's API. It does not travel with the word Claude. If your app reaches Claude through an AI builder's built-in AI feature, an AI gateway, or another company's service, that company also handles the PHI (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and Anthropic's HIPAA readiness does not extend to services connected to your application (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Each one handles PHI for you, so each needs its own BAA (or a BAA chain you can confirm) before patient data flows through it (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). If you run Claude on Amazon Bedrock, check AWS's terms: Bedrock appears on AWS's HIPAA Eligible Services list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026), and AWS requires its own BAA before PHI goes into its eligible services (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026). See Is AWS HIPAA eligible? for that path.

Building is not covered by the app's BAA. The API BAA covers your app's calls. It does not automatically cover the coding agent you used to build the app. Anthropic's BAA article lists Claude Code with a Console API key as eligible only with zero data retention turned on (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 15, 2026) (zero data retention means Anthropic does not store the data on its servers (Anthropic, Data usage - Claude Code Docs, verified November 15, 2026)). Unless your setup meets a condition like that, keep real patient data out of Claude Code sessions; see Is Claude Code HIPAA compliant? Build and test with synthetic (made-up) patients.

Practical do and don't list

DoDon't
Use a separate API organization with HIPAA readiness on for any app that touches patientsReuse an API key from a personal or general-purpose organization
Call the Messages API from your server, with PDFs sent inlineUpload patient files through the Files API or send notes through the Batch API
Test prompts with synthetic patients in the ConsolePaste a real patient note into the Console to see how a prompt behaves
Name files and workspaces with neutral IDsPut names, dates of birth or diagnoses in file names, workspace names or schemas
Treat a 400 error from the API as the safeguard workingLet the coding agent work around that error by switching keys or organizations
Get a BAA from every service between your app and AnthropicAssume a builder's built-in AI or a gateway inherits Anthropic's BAA

Also send only what the task needs. HIPAA's minimum necessary standard asks for reasonable efforts to limit PHI to what the purpose requires (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). A message-drafting feature rarely needs the full chart.

How this goes wrong: the 400 error the coding agent fixed

Hypothetical. Imagine an internist who builds a referral-triage tool. Faxed referrals arrive as PDFs. Her app should read each one, pull out the reason for referral and the urgency, and draft a reply to the referring office. She does the right first step: she creates a new API organization, signs Anthropic's BAA in the Console, and turns on HIPAA readiness.

Then she asks her coding agent to process all of yesterday's referrals overnight. The agent uploads each PDF through the Files API and submits the batch through the Batch API. Neither feature is covered, so the HIPAA-enabled organization refuses the requests with a 400 error. The agent sees a failing request, not a privacy safeguard. It suggests using the API key from her older test organization, the one she used while prototyping, where everything works. She accepts, the overnight job runs, and every referral, with names, dates of birth, diagnoses and insurance numbers, goes to an organization with no BAA.

A week later she tunes the prompt by pasting one real referral into the Console, which is not covered either. Nothing looks wrong in the app. The problem is only visible if someone checks which key the server uses and which features the code calls.

Fixing the code is the easy part: keep the HIPAA-enabled key, send PDFs inline through the Messages API, and process referrals one request at a time. The harder part is the PHI already sent. Under HIPAA's breach rule, an impermissible disclosure is presumed to be a breach unless a documented risk assessment shows a low probability that the PHI was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026). That assessment is a decision for her counsel or privacy officer, not for her coding agent. The existing guide on what to do first when an AI tool sent PHI to a model without a BAA covers the next steps.

Keep, refactor, or rebuild?

Verdict: Keep or Refactor

If your app calls the Messages API from its own server, this is usually a Keep: move the key to a HIPAA-enabled organization, remove ineligible features, and add logging and access controls around the copies of prompts and replies. If the app reaches Claude through a builder's AI feature, a gateway, the Files or Batch API, or a key from a non-HIPAA organization, it is a Refactor: keep the screens and replace the AI integration that carries PHI. Either way, the model is rarely the problem; the route to it is.

The deciding question is not which model your app uses but how it reaches the model. Two apps can both call Claude: one sends a prompt from its own server with a key from a HIPAA-enabled organization, the other sends patient PDFs through a builder's AI feature. The first usually needs tightening; the second needs its AI integration replaced. Rebuilding is rarely about Anthropic. It comes up when the platform around the app cannot move patient data to services covered by BAAs.

A quick check of your app's Claude setup

  1. Find every key. Ask your coding agent to list every place the app calls Anthropic, and which environment variable holds each key. Confirm in the Console that each key belongs to the organization with HIPAA readiness on.
  2. List the features. Ask the agent to name every API feature the code uses: Files API, Batch API, code execution, web fetch, Skills, Managed Agents. Compare the list against Anthropic's feature eligibility table and your signed BAA, which Anthropic calls the source of truth (Anthropic, API and data retention - Claude Docs, verified November 15, 2026).
  3. Check the path. Make sure the app calls Anthropic's API directly from your server, not through a builder's AI feature, a gateway, or a partner cloud you have no BAA with.
  4. Check the copies. Look at where prompts and replies are saved or logged: your database, server logs, error trackers. Each is a copy of PHI, and a vendor that stores PHI is a business associate even if it never looks at it (HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566, verified November 15, 2026). If your app is an AI scribe, the AI scribe walkthrough goes further.
  5. Write it down. Record the organization, the BAA version and the features you use in your Security Risk Analysis. Every covered entity must do an accurate and thorough risk analysis (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026).

For how the rest of your stack compares, see the dated BAA matrix and the OpenAI API guide.

Frequently asked questions

Is Claude HIPAA compliant if I use the API?

No authority certifies software as HIPAA compliant. Anthropic offers a BAA for its first-party API, and PHI may be processed only in an organization with a signed BAA and HIPAA readiness turned on, using supported features (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Your practice still decides, with counsel, whether your overall use meets HIPAA.

Can I sign Anthropic's BAA myself, or do I need to talk to sales?

Anthropic's API docs say eligible organizations can review and sign the BAA and enable HIPAA readiness directly in the Claude Console (Anthropic, API and data retention - Claude Platform Docs, verified November 27, 2026). If you need a negotiated BAA, or self-serve enablement is not available for your organization, Anthropic says to contact its sales team (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Anthropic's privacy center instead says the Primary Owner signs the BAA and then contacts Anthropic or sales to turn PHI use on (Business Associate Agreements (BAA) for Commercial Customers | Anthropic Privacy Center, verified November 27, 2026), so confirm which path applies to you.

Does my Claude Pro or Max subscription cover patient data?

No. Anthropic lists the Free, Pro, Max and Ultra plans as not covered by HIPAA readiness (Anthropic, API and data retention - Claude Platform Docs, verified November 15, 2026), and says Team and individual plans cannot enable HIPAA (Anthropic, HIPAA-ready Enterprise plans, verified November 27, 2026). For the chat product, see Can you use Claude with patient data?

Can I turn HIPAA readiness off later if I want to use other API features?

Not in that organization. Anthropic says the configuration is permanent once enabled (Anthropic, API and data retention - Claude Docs, verified November 15, 2026) and recommends separate organizations if you need both HIPAA-ready and general-purpose access (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). Keep PHI only in the HIPAA-enabled one.

Our API BAA is from 2025. Does it also cover Claude Enterprise for staff?

Anthropic says a Claude API BAA signed before December 2, 2025 covers only API usage and does not extend to the HIPAA-ready Enterprise plan (Anthropic, HIPAA-ready Enterprise plans, verified November 27, 2026). Enterprise has its own activation step by the organization's Primary Owner (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026).

Does the API BAA cover me when Claude Code builds my app?

Not by default. Anthropic's API docs say Claude Code is not covered under HIPAA readiness (Anthropic, API and data retention - Claude Platform Docs, verified November 27, 2026). Its BAA article lists Claude Code with a Console API key as eligible only with zero data retention enabled (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 15, 2026). Build with synthetic patients, and see the Claude Code guide for the Enterprise options and their conditions.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Already sending patient text to Claude from an app you built? Checking the key, the organization and the features is the first conversation to have.

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. Anthropic, Business Associate Agreements (BAA) for Commercial Customers. Checked November 27, 2026.
  2. Anthropic, API and data retention - Claude Docs. Checked November 15, 2026.
  3. HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  4. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  5. HIPAA Eligible Services Reference - Amazon Web Services (AWS). Checked November 26, 2026. Page dated Last Updated: November 16, 2026.
  6. Anthropic, Data usage - Claude Code Docs. Checked November 15, 2026.
  7. HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  8. HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566. Checked November 15, 2026. Page dated 2013-01-25.
  9. HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  10. Anthropic, HIPAA-ready Enterprise plans. Checked November 27, 2026.