Stack components
Does the OpenAI API Sign a BAA? Using GPT Models with Patient Data
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: Yes, with conditions. OpenAI offers a Business Associate Agreement (BAA) for its API, but patient data may go only through an organization and project where the console shows Modified Retention active, and only to HIPAA-eligible endpoints (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026). Accept the BAA in the API Platform, then confirm both settings before patient data reaches GPT.
If your vibe-coded app drafts replies to patient messages, summarizes intake forms, transcribes dictation, or answers staff questions about a chart using a GPT model, it sends patient text to OpenAI's API. Look in the code or the builder's settings for an OpenAI API key or a model name starting with gpt. If you find one, this page is about your app.
OpenAI does sign a BAA for the API. But the BAA is accepted for one API organization at a time. Each project that carries patient data also needs a second setting, called Modified Retention, shown as active. And only a published list of endpoints may be used with patient data, not everything the API can do. The ChatGPT chat plans and builder tools you may have used along the way have their own, separate rules.
What OpenAI says, in its own words (checked November 15, 2026)
OpenAI's help center states the starting rule for the API (the programming interface your app's code calls, as opposed to the ChatGPT chat app):
“To use the OpenAI API with protected health information (PHI), your organization must first enter into a Business Associate Agreement (BAA) with OpenAI.”
Who can sign, and where
You do not need a large contract. OpenAI says “An enterprise agreement is not required to sign a BAA for API services. Self-serve enrollment requires an established history of API usage.” (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026) The acceptance happens inside the API Platform: “Open Settings, then go to Organization > General. Under HIPAA compliance support, select Enable.” (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026) When it finishes, that section shows Active (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026). Only an organization admin who has authority to accept the agreement on the organization's behalf can do it (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026), and once HIPAA compliance support is on, it cannot be turned off in those settings (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026).
A brand-new API organization may not qualify right away. If the BAA section shows Not eligible yet, OpenAI says the organization does not meet its self-serve requirements (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026), and it suggests trying again in a few days or writing to baa@openai.com (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026).
The second switch: Modified Retention
The BAA alone is not enough for the API. OpenAI's eligibility page says:
“API HIPAA eligibility requires an executed OpenAI BAA. Your organization must also be provisioned with Modified Retention, unless OpenAI specifies otherwise.”
Modified Retention is OpenAI's umbrella term for a set of options (Modified Abuse Monitoring, Zero Data Retention, Safety Retention, or Eyes Off) (OpenAI, HIPAA Implementation and Configuration Guide, verified November 15, 2026). OpenAI's HIPAA Guide makes it specific to where your requests go: “In order to transmit HIPAA Input to the API Services, Customer’s account must show that a Modified Retention feature is activated for the associated Org ID and Project in the Account Console.” (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026) It puts the burden on you: “Customer is responsible for ensuring all HIPAA Input for HIPAA Endpoints is transmitted only using Org IDs and Projects that have Modified Retention active.” (OpenAI, HIPAA Implementation and Configuration Guide, verified November 15, 2026) If you have more than one organization, each one needs its own activation (OpenAI, HIPAA Implementation and Configuration Guide, verified November 15, 2026). The guide also says PHI may not go to the API at all unless your BAA expressly lists the API Services as eligible (OpenAI, HIPAA Implementation and Configuration Guide, verified November 15, 2026).
Which API features are covered
OpenAI publishes a list of HIPAA-eligible endpoints (an endpoint is one specific API address, such as the one that generates a reply). The list includes /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/audio/transcriptions, /v1/files and /v1/realtime (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026), plus the Assistants, threads and vector stores endpoints (HIPAA eligible products and functionality | OpenAI Help Center, verified November 15, 2026). OpenAI says “Once these requirements are met, you can use the endpoints below to process protected health information (PHI), even if data is retained.” (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026) In other words, eligible does not mean nothing is kept.
Some endpoints are missing. We could not confirm from OpenAI's own pages, as of November 15, 2026, that /v1/conversations, /v1/conversations/items, /v1/chatkit/threads, /v1/agents, /v1/evals or /v1/audio/voices are HIPAA eligible: OpenAI's HIPAA-Eligible Endpoints list does not name them, although its data controls page lists each as an API endpoint (OpenAI: public pages we checked (2 pages), verified November 15, 2026).
Rules that apply even with a BAA
- No patient accounts on OpenAI. “Customer may not create End User Accounts directly on the OpenAI Services for patients, plan members, or their families or employer.” (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026)
- OpenAI is not your chart. OpenAI's HIPAA Guide says its eligible services may not be used to keep PHI as part of a designated record set (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026). Under HIPAA, that set includes your medical and billing records and other records used to make decisions about patients (HHS, 45 CFR 164.501 Definitions, verified November 27, 2026).
- The BAA is not the finish line. “Accepting a BAA and enabling HIPAA compliance support do not, by themselves, make your application HIPAA compliant.” (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026)
- No PHI in support tickets. OpenAI asks customers not to include PHI in support requests, screenshots or attachments (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026).
What the API BAA does not cover
- ChatGPT Business and personal plans. OpenAI does not offer a BAA for ChatGPT Business (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026), and Free, Plus and Pro are not eligible services (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026).
- ChatGPT for Clinicians. Eligible clinicians can sign a BAA for their own ChatGPT for Clinicians workspace (ChatGPT for Clinicians | OpenAI Help Center, verified November 27, 2026). That agreement is for the clinician's own chat workspace. The API BAA is a separate agreement, accepted in the API Platform as described above.
- ChatGPT Sites. If you built the app itself in ChatGPT Sites, its terms say a Site may not create, receive, maintain, transmit or process PHI (ChatGPT Sites Terms | OpenAI, verified November 27, 2026).
- Codex on your computer. OpenAI's HIPAA-eligible products page says the BAA does not apply to running the Codex Local client on your own machines or to outside services it reaches (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Codex used with your own API key is covered for data OpenAI processes only if your BAA includes the API Services with Modified Retention (HIPAA eligible products and functionality | OpenAI Help Center, verified November 15, 2026).
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). OpenAI offers that BAA for the API. Your job is making sure every request that carries patient data uses the covered organization, a project with Modified Retention active, and a listed endpoint.
How a vibe-coded app usually wires in GPT
A coding agent typically puts an OpenAI API key (a password-like string, often named OPENAI_API_KEY) into the app's server settings and writes a small server function that sends text to a GPT model. Bolt's docs, for example, describe connecting to OpenAI by adding your own OpenAI API key as a secret (Bolt (StackBlitz, Inc.), Integrations issues, verified November 15, 2026), and AI features added to an app in the new FlutterFlow call OpenAI, Anthropic or Google Gemini with your own key (AI services | FlutterFlow docs, verified November 15, 2026). That key belongs to an OpenAI organization and project, so it decides whose account, and whose settings, the patient data goes through.
In a practice app, PHI reaches OpenAI through:
- The prompt. The patient's portal message, intake answers, a pasted medication list, plus the system prompt (standing instructions) if it names the patient.
- Files and images. A photo of an insurance card, a referral PDF, a rash photo sent for a draft reply.
- Audio. A recorded visit or voicemail sent for transcription, or a live phone or voice assistant built on the realtime endpoint.
- Embeddings. Number fingerprints of notes, made so the app can search them. The text sent to make them is PHI, and so is wherever you store them.
- Stored state. By default, the Responses API keeps response data for at least 30 days (Data controls in the OpenAI platform, verified November 15, 2026). Vector stores (OpenAI-side search indexes) and files you upload are kept until deleted (Data controls in the OpenAI platform, verified November 15, 2026) (Data controls in the OpenAI platform, verified November 15, 2026).
- The reply. A drafted message or summary about a patient is PHI, and so is every copy your app saves, logs or sends to an error tracker.
OpenAI says API data is not used to train its models unless you opt in (Data controls in the OpenAI platform, verified November 27, 2026). That is a separate question from whether the data may be sent at all, which is what the BAA and Modified Retention settle.
The route matters as much as the model
Your BAA covers your organization calling OpenAI. It does not travel with the word GPT. If the app uses an AI builder's built-in AI feature, the builder makes the call. Base44's subprocessor list, for example, names OpenAI and Anthropic for LLM API calls (Base44 Platform Security: Build and Scale Secure AI Apps, verified November 15, 2026), and Base44's public pages, checked November 15, 2026, do not describe any plan or written-agreement process under which Base44 signs a BAA or accepts PHI (Base44: public pages we checked (10 pages), verified November 15, 2026). In that setup the builder, not your OpenAI organization, sends the request, so your own OpenAI BAA is not the agreement that matters for that path. See the Base44 guide and the Bolt guide for the builder side.
Building is a separate question. The API BAA is about your app's API calls. The ChatGPT chat window where you asked for help writing the code is a different service, and OpenAI's HIPAA Guide says Free, Plus, Pro and Business are not eligible services (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026). If you pasted real patient details there, see what to do after pasting patient information into ChatGPT. Build and test with synthetic (made-up) patients.
Practical do and don't list
| Do | Don't |
|---|---|
| Keep patient work in one API organization with the BAA Active and Modified Retention shown for the exact project | Create a new project or key for production without checking that it shows Modified Retention |
| Use endpoints on OpenAI's HIPAA-eligible list, such as chat completions or responses | Switch to conversations, ChatKit threads or agents endpoints for patient data without OpenAI confirming coverage in writing |
| Keep the record of what was said and decided in your own BAA-covered database | Use OpenAI files, threads or vector stores as the place a patient's history lives |
| Let patients use your app, which calls the API from your server | Give patients their own accounts on OpenAI services |
| Name files and records with neutral IDs | Upload scans named with patient names and dates of birth |
| Describe a problem to OpenAI support in general terms | Paste a real prompt, screenshot or log into a support request |
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). Drafting a reply about a refill does not need the whole chart.
How this goes wrong: a pediatric portal helper, a new production key, and a memory feature
Imagine a pediatrician who builds a portal-message helper. Parents write in about fevers, rashes and refills, and the app drafts a reply for a nurse to review. She does the first steps right. Her practice's API organization already has months of use from the prototype, built on made-up patients, so the self-serve BAA is available. She accepts it, the section shows Active, and the console shows Modified Retention for the organization's original project. Her prototype calls the chat completions endpoint from the server.
Then she asks her coding agent for two changes before launch: use a separate key for production and make it remember each family's earlier messages. Both requests are reasonable. The agent creates a new project called portal-prod with a fresh key, and moves the app to the /v1/conversations endpoint so OpenAI keeps the message history between visits. Everything works. Parents get faster replies.
Two things changed, and neither shows up on screen. First, OpenAI's HIPAA Guide ties activation to the specific Org ID and Project (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026), and nobody confirmed that the console shows Modified Retention for portal-prod. Until someone does, patient messages are flowing through a project she cannot show is covered. Second, /v1/conversations is not on OpenAI's HIPAA-Eligible Endpoints list (OpenAI: public pages we checked (2 pages), verified November 15, 2026), and OpenAI's data controls page says that endpoint keeps application state until deleted (Data controls in the OpenAI platform, verified November 15, 2026). Each family's message history now sits at OpenAI, outside the setup she confirmed. If those histories are part of what the practice uses to make decisions about a child, the app is now keeping designated record set material in OpenAI's services, which the HIPAA Guide says customers may not do (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026).
The code fix is small: point the key back to a project with Modified Retention shown, keep message history in the practice's own covered database, and send only the recent messages the draft needs to the chat completions endpoint. 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). Whether that is a reportable breach is for her counsel or privacy officer to decide. The existing guide on what to do first when an AI tool sent PHI to a model without a BAA covers the next steps.
What to ask OpenAI, and a quick check of your setup
What to ask OpenAI where its pages are silent
Where OpenAI's public pages do not settle a question, get the answer in writing before patient data flows, and keep it with your BAA. Do not include real patient details when you ask (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026). Useful questions:
- Our app uses [endpoint, for example /v1/conversations or /v1/agents]. It is not on your HIPAA-Eligible Endpoints list. Is it covered under our BAA?
- Which Modified Retention option is active for each project in our organization, and how do we confirm it in the console?
- Our organization shows Not eligible yet for the self-serve BAA. What do we need to complete it?
- Does our signed BAA list the API Services as an Eligible Service?
OpenAI's BAA article gives baa@openai.com as the contact for organizations that are not yet eligible for the self-serve flow (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026).
A quick check of your app's OpenAI setup
- Find every key. Ask your coding agent to list every place the app calls OpenAI and which environment variable holds each key. In the API Platform, match each key to its organization and project.
- Check both switches. Confirm HIPAA compliance support shows Active for that organization and that the console shows Modified Retention for that exact project.
- List the endpoints. Ask the agent which endpoints the code calls. Compare each against OpenAI's HIPAA-eligible list.
- Find the copies. Check where prompts and replies are saved: your database, server logs, error trackers, OpenAI-side files and threads. A company 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).
- Write it down. Record the organization, project, BAA date and endpoints in your Security Risk Analysis, which every covered entity must do (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026).
For an AI scribe, the AI scribe walkthrough goes further. To compare the rest of your stack, see the dated BAA matrix, the Stack Checker, and the Anthropic API guide.
Keep, refactor, or rebuild?
If your app calls a listed endpoint such as chat completions from its own server, with a key from the BAA organization and a project showing Modified Retention, this is usually a Keep: confirm the settings, keep any stored history in your own covered database, and add access controls and logging. If the app reaches GPT through a builder's AI feature, uses conversations, ChatKit or agents endpoints for patient data, or runs on a key from an organization without the BAA, it is a Refactor: keep the screens and replace the AI integration that carries PHI.
The OpenAI connection is usually one piece of server code, so it can be changed without touching the screens. The deciding questions are which key the server uses, whether that project shows Modified Retention, and which endpoints the code calls. An app that calls chat completions from its own server and keeps its records in a covered database usually needs tightening. An app that reaches GPT through a builder's AI feature, or that keeps patient history in OpenAI's conversation or thread storage, needs its AI integration replaced. If the builder also hosts the app and its patient data, read that builder's guide too; its verdict may be stronger.
Frequently asked questions
Is the OpenAI API HIPAA compliant?
No authority certifies software as HIPAA compliant. OpenAI requires a BAA before PHI goes to the API (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026), plus Modified Retention for the organization (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026) and the project you use (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026). OpenAI itself says the BAA does not by itself make your application HIPAA compliant (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026). Your practice decides, with counsel, whether its overall use meets HIPAA.
Do I need an enterprise contract with OpenAI to get a BAA for the API?
No. OpenAI says an enterprise agreement is not required for an API BAA, but self-serve enrollment requires an established history of API usage (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026). If the API Platform shows Not eligible yet, OpenAI suggests trying again in a few days or contacting baa@openai.com (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026).
I signed the BAA in ChatGPT for Clinicians. Does that cover my app's API calls?
No. The ChatGPT for Clinicians BAA is for your own ChatGPT for Clinicians workspace (ChatGPT for Clinicians | OpenAI Help Center, verified November 27, 2026). API use needs its own BAA, accepted by an organization admin in the API Platform (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 15, 2026), plus Modified Retention. For the chat products, see Can you use ChatGPT with patient data?
Does OpenAI train its models on the patient data my app sends?
OpenAI says data sent to the API since March 1, 2023 is not used to train its models unless you opt in (Data controls in the OpenAI platform, verified November 27, 2026). That does not replace the BAA: by default OpenAI keeps API abuse-monitoring logs, which may contain prompts and responses, for up to 30 days (Data controls in the OpenAI platform, verified November 27, 2026).
Can my app store each patient's chat history in OpenAI?
Not as the place that history lives. OpenAI's HIPAA Guide says covered services may not be used to keep PHI as part of a designated record set (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026), and the conversations endpoint is not on OpenAI's HIPAA-eligible list (OpenAI: public pages we checked (2 pages), verified November 15, 2026). Keep the history in your own BAA-covered database and send the model only what each request needs.
Is a Bolt or Base44 app that uses GPT covered by my OpenAI BAA?
Only if your app calls OpenAI with your own key from your BAA organization. Bolt's docs describe adding your own OpenAI key as a secret (Bolt (StackBlitz, Inc.), Integrations issues, verified November 15, 2026). If a builder's built-in AI feature makes the call instead, the builder handles the PHI too, which makes it a business associate (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and your practice needs satisfactory assurance from it, in practice a BAA, before that happens (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Already sending patient messages to GPT from an app you built? Checking the key, the project and the endpoints 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.
- OpenAI, HIPAA Implementation and Configuration Guide. Checked November 27, 2026. Page dated Posted: July 9, 2026.
- Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 13 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-02).
- HIPAA eligible products and functionality | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 5 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-10).
- HHS, 45 CFR 164.501 Definitions. Checked November 27, 2026. Page dated eCFR current as of 2026-11-01.
- ChatGPT for Clinicians | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: yesterday (relative date as displayed on 2026-11-15, i.e. ~2026-11-14).
- ChatGPT Sites Terms | OpenAI. Checked November 27, 2026. Page dated Updated: November 6, 2026.
- 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).
- 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).
- Bolt (StackBlitz, Inc.), Integrations issues. Checked November 15, 2026.
- AI services | FlutterFlow docs. Checked November 15, 2026.
- Data controls in the OpenAI platform. Checked November 15, 2026.
- Base44 Platform Security: Build and Scale Secure AI Apps. Checked November 15, 2026.
- Base44: public pages we checked (10 pages). Checked November 15, 2026.
- 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).
- 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.
- 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).