
Essay BAA Requirements
BAA Scope and PHI Redaction Commitments in AI Gateway Vendor Agreements What the Contract Actually Says
Check your AI vendor's contract, not just its HIPAA badge.
A HIPAA compliant AI gateway for teams handling PHI requires more than a signed business associate agreement. Its contract must cover the actual data path, restrict reuse, and define retention, redaction, subprocessor, and audit obligations that the architecture implements.
Why the gap between AI gateway marketing and contract language matters for PHI
A vendor’s homepage may say “HIPAA compliant,” while its BAA and data processing agreement commit to a narrower set of protections. Those documents define the enforceable terms. “HIPAA eligible” means a provider will sign a BAA under qualifying conditions. No AI product is inherently HIPAA compliant, and HIPAA does not certify or approve products.
Under 45 CFR § 160.103, an entity that creates, receives, maintains, or transmits PHI on behalf of a covered entity is a business associate. Machine learning does not change that analysis. The contract review must therefore look at what each vendor does, since a compliance badge does not protect the whole system.
What a BAA must contain and what vendors routinely leave negotiable
Model-training restrictions, granular retention terms, subprocessor transparency, and assessment rights are not protections to assume in a standard BAA. Required provisions establish a minimum. They address permitted uses and disclosures, safeguards, incident reporting, subcontractor obligations, termination, and return or destruction of PHI. The negotiated terms determine how those obligations apply to the particular risks of an AI system.
The agreement must spell out training restrictions because a general safeguard clause leaves open whether the vendor may reuse patient data. The agreement should ban the use of PHI to train, fine-tune, or improve the vendor’s models. Without that restriction, vendor policies may leave permissions that conflict with HIPAA’s Privacy Rule. Ownership and licensing terms require the same scrutiny, because a broad license to “improve services” can undermine a training prohibition elsewhere in the agreement.
Morgan Lewis’s 2026 analysis warns covered entities to assess permissions for de-identification, data aggregation, and reuse in AI and health technology BAAs. These permissions can broaden the vendor’s rights substantially. They must be read together with restrictions on sharing and commingling PHI. These are not standard SaaS click-throughs and require counsel to reconcile the agreement as a whole.
Which providers sign BAAs and under what exact conditions
As of 2026, Azure OpenAI Service is covered under Microsoft’s BAA for commercial Azure customers that are covered entities or business associates under HIPAA. The terms of that coverage are set out in Microsoft Product Terms and the Data Protection Addendum. The customer must call the Azure OpenAI endpoint, however, rather than api.openai.com. A Microsoft BAA does not cover a request routed to the OpenAI endpoint.
Hathr AI includes a BAA by default and offers a smaller model selection purpose-built for clinical workflows. John Snow Labs Healthcare NLP & LLM can run on-premises or in a private cloud for clinical text analysis and entity extraction. Cohere makes a BAA available only for custom model development engagements, subject to sales engagement and use-case review. Its trial and standard API tiers are not covered, and there is no self-service BAA.
Open-weight models such as Llama, Mistral, and Qwen can run inside the customer’s compliance perimeter on a HIPAA-eligible cloud such as AWS, Azure, or GCP without an AI-vendor BAA. The customer then owns evaluation, safety, and lifecycle management. Cloud service boundaries still require attention, because Google Vertex AI’s compliance framework does not automatically settle the status of adjacent logging, Pub/Sub, or monitoring services.
Supporting tools have their own plan restrictions. Sentry offers a BAA on Business and Enterprise plans, Amplitude on Enterprise and Growth plans, and Mixpanel on Enterprise only. Amplitude’s Starter and Plus plans have no BAA. FullStory requires Enterprise and privacy masking to be set up, including Private by Default masking to keep session replay from capturing sensitive field values. Hotjar offers no BAA on any plan and is not an option for healthcare apps or portals handling PHI.
How subprocessor chains extend BAA liability beyond the primary vendor
A single request can pass from the primary API call to a tracing tool, then a log aggregator, then an error reporter. Four vendors may touch that request. A team may have negotiated a BAA with only the first, even though every downstream party handling PHI needs appropriate coverage. The primary business associate must obtain BAAs from its PHI-handling subcontractors, while tools engaged separately by the customer require their own contractual review.
The chain extends beyond deliberate prompt submission. Patient data may come in automatically from another system, be stored for a short time, show up in a trace, or become part of an output. The BAA must permit those contemplated upstream and downstream flows along with the primary inference request. Morgan Lewis’s analysis emphasizes mapping where data originates, when it enters the system, where it is stored, who can access it, and what appears in outputs.
Tracing is a particularly exposed part of that chain. LangSmith, Langfuse, and similar tools can capture full payloads on standard SaaS tiers that typically do not provide a BAA. The available remedies are to self-host the tracer, move to a tier that signs a BAA, or scrub identifiers before exporting spans. Under 45 CFR § 164.308(a)(8), regular security review must also account for updates, configuration changes, and integrations that alter these flows.
Under 45 CFR § 160.103, an entity that creates, receives, maintains, or transmits PHI on behalf of a covered entity is a business associate.
What zero data retention actually requires in the contract versus what the architecture delivers
A BAA and zero data retention are distinct commitments. Signing an agreement does not by itself stop the infrastructure from recording inputs. Nor does every BAA require ZDR. OpenAI’s API BAA depends on Modified Retention settings rather than requiring ZDR, and eligible endpoints can process PHI while retaining data. Standard API retention includes a period of days for abuse monitoring.
That distinction makes the contractual definition of ZDR essential. A workable definition limits customer data to volatile memory during the active request lifecycle and prohibits writes to persistent storage. It expressly includes databases, caches, message queues, object stores, log files, backups, and training datasets. A promise confined to the primary inference path leaves other storage paths unresolved. Retention periods for any permitted records also need to be stated explicitly.
Implementation must then be evaluated against that definition. Azure OpenAI, AWS Bedrock, and Google Vertex AI implement ZDR within their respective cloud compliance frameworks, but adjacent services need independent review. Signing a BAA and enabling the required retention configuration are separate steps where the provider makes them separate. Neither action proves the other occurred.
Architecture can also change after signature. Negotiating a termination-without-penalty right for major changes to the architecture therefore helps protect the customer, especially if a vendor later adds persistent caching. The agreement should make the retention obligation binding rather than leaving it as an optional setting or customary safeguard. Otherwise, the customer has a stated expectation without a matching contractual constraint.
PHI redaction at the gateway layer and what the contract must say about it
Gateway-layer redaction places a control before the model provider receives the prompt. Named Entity Recognition can find and replace names, account numbers, addresses, and health identifiers at one chokepoint governed by policy. This reduces reliance on each developer implementing the same protection in every feature. It also adds defense in depth if downstream retention controls fail, as long as the data sent no longer contains re-identifiable PHI.
A gateway that processes PHI in transit is itself a business associate, so its BAA must address its retention, logging, and subprocessors separately from the model provider’s agreement. The contract should reflect three technical commitments, including dynamic PII masking before transmission, stateless processing without persistent request-content storage, and metadata-only audit logging.
Outputs need protection as well as inputs. An LLM may infer, combine, or echo details from retrieved context, so the agreement must address potentially PHI-containing responses as well as input scrubbing. Where the workflow requires re-identification in responses, that handling belongs within the defined request lifecycle. Redaction provides defense in depth alongside the required BAA, with some permitted disclosures allowed to retain identifiers.
Training restrictions also need an enforcement mechanism. Morgan Lewis’s guidance advises against training on PHI, or calls for limits on it, unless the model runs in a closed, proprietary environment. Gateway redaction can support that restriction when the downstream environment is not closed, alongside the required written prohibition on reuse, because a technical control and a contractual limit address different risks.
Audit logging obligations and what HIPAA requires the logs to contain
Preventing retention of PHI does not mean eliminating audit evidence. HIPAA’s Security Rule at 45 CFR § 164.312(b) requires audit controls, and the record must make it possible to review activity involving patient data. A log that says only that a request was made gives too little detail to show whether controls worked as they should. For AI use, the audit design must account for prompts, responses, timestamps, requester identity, and inference details.
That requirement must be reconciled with the retention commitment. The rule requires activity to be recorded and reviewed, but does not require raw PHI to be kept in every gateway log. Metadata-only gateway logging and any PHI-containing audit records need clearly defined roles, storage boundaries, and retention terms. Where logs contain PHI, they must be encrypted at rest and in transit and included in the access and subprocessor analysis.
The audit trail also connects requests to accountable identities. Teams need to know which API key made a request and preserve that relationship when keys rotate. Gateway logs must be tamper-evident and sent to the customer’s existing monitoring infrastructure so that access is not limited to a vendor dashboard. SSO and RBAC support restricted access, but access must also be logged and reviewed.
This evidence connects directly to the subprocessor chain. Audit records should make it possible to check whether requests stayed within covered endpoints and whether gateway controls worked before the data was sent. The tools that receive those records must also be checked for PHI exposure. A compliance instrument must not become an unexamined disclosure path.
What to actually review before signing an AI gateway vendor agreement
The contract review should begin with scope and permitted use. Does the agreement name the covered endpoints and the consumer-tier plans it excludes? Does it prohibit using PHI to train, fine-tune, or improve models, and do licensing clauses preserve that restriction? These questions establish the boundary of the vendor’s authority. They also expose conflicts that a general promise of HIPAA compliance cannot resolve.
Does the agreement require ZDR, define it precisely, and state retention periods for logs, caches, and backups? Does it identify every PHI-handling subprocessor and require appropriate downstream BAAs? Assessment rights should provide a way to audit controls or receive attestation that they operate as described. A termination-without-penalty provision should cover major changes to the data architecture.
The technical review must test those answers independently. Which endpoint does the application actually call, and is the required ZDR configuration enabled? Does each tracer, error reporter, and log aggregator have appropriate BAA coverage, or receive data only after identifiers are removed? Is redaction enforced at one policy-controlled gateway? The review must also check whether audit records are encrypted, whether the customer controls access to them, and whether they have enough detail to review PHI-related activity.
Counsel identifies the vendor’s obligations, while the architecture audit compares the actual request path with those obligations. Data mapping gives both disciplines the same path to check, from the first patient-data input through downstream processing and audit storage. A team is ready to sign when the agreement and that map describe the same system.
Notes
- Healthcare AI Deployment: Compliance Through Contracting, BAAs, and Data Governance
Provided legal analysis on de-identification permissions, data aggregation rights, training restrictions, and data mapping obligations that informed multiple sections of the article.


