Stack components
Does SendGrid Sign a BAA? Emailing Patients from Your Vibe-Coded App
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: No. Twilio says it is not able to sign a Business Associate Agreement (BAA) for SendGrid, and that SendGrid should not be used for anything involving protected health information (PHI). (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026) If your vibe-coded app emails patients through SendGrid, take every patient detail out of those emails now and move patient email to a sender covered by a signed BAA.
SendGrid (officially Twilio SendGrid) is an email-sending service, and Twilio's own documentation answers its HIPAA status. If you asked a coding agent or app builder to send a confirmation email or email me when a form comes in, check your code and settings for a SendGrid API key (a password-like string your app uses to send mail). If you find one, this page is for you.
The short version: Twilio will sign a BAA for some of its texting products, but not for SendGrid. If you already have a Twilio BAA for texting, do not assume it reaches your email. It does not. Below is what Twilio says, where patient data hides in app email, and what to do this week.
What Twilio SendGrid says, in its own words (checked November 15, 2026)
Twilio's own documentation page on SendGrid and HIPAA (last updated July 23, 2026, according to the page's own data) is direct. This is the load-bearing sentence:
“Twilio is not able to sign Business Associate Agreements for SendGrid, therefore, customers should not use SendGrid for any purpose or in any manner involving Protected Health Information (as defined in HIPAA).”
The same page states “Twilio SendGrid is not HIPAA compliant and is not a HIPAA Eligible Service. Don't use Twilio SendGrid to transmit Protected Health Information (PHI) as defined in HIPAA.” (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026) The statement names no plan or edition as an exception.
SendGrid's support Knowledge Center answers the same question by quoting its terms, which apply to covered entities (such as your practice) and business associates (the vendors who handle PHI for you):
“If You are (or become) a Covered Entity or Business Associate (as defined in HIPAA) or a Financial Institution (as defined in GLBA), You agree not to use the Service for any purpose or in any manner involving Protected Health Information (as defined in HIPAA) or Nonpublic Personal Information (as defined in GLBA).”
Twilio also closes the obvious workaround. Its page describes extra protections a customer might add, such as encrypting the email body or sending a secure download link instead of an attachment, and then says “However, implementation of the above security mitigation tools does not make SendGrid a HIPAA Eligible Service.” (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026)
How this differs from the rest of Twilio
Twilio does offer a BAA for other products. Customers who want one must have Twilio's Security Edition or Enterprise Edition (Twilio and HIPAA, verified November 15, 2026), and the request goes through a Twilio account representative or sales (Twilio and HIPAA, verified November 15, 2026). Even with that BAA, PHI may flow only through products on Twilio's HIPAA Eligible Services list; other products may be used only where there is no potential for PHI to be exchanged (Twilio and HIPAA, verified November 15, 2026).
Two Twilio features send email through SendGrid, and Twilio flags both. The email channel of Twilio Verify (one-time sign-in codes) is not HIPAA eligible (Architecting for HIPAA on Twilio, verified November 15, 2026), and neither is Email in Flex (Architecting for HIPAA on Twilio, verified November 15, 2026).
What this means for your app
Under HIPAA, a business associate is a company that creates, receives, maintains, or transmits PHI for your practice (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and your practice may let one do that only with satisfactory assurance that it will safeguard the information (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). That assurance is the BAA. Twilio says it cannot sign one for SendGrid, so the working rule is simple: nothing that counts as PHI should leave your app through SendGrid.
The hard part is noticing how much of an app's email involves patients. Everything your code hands to an email service travels through it: the recipient address, the display name, the subject line, the body, any attachment, and any labels or extra fields your code attaches for tracking. In a vibe-coded practice app, look for these:
- Sign-in emails. Password resets, magic links and verification codes sent to patients. The patient's address goes to the email service even if the message says nothing clinical.
- Appointment emails. Confirmations and reminders that include the date, the clinician, the location or the visit type.
- Form receipts. Here is a copy of your answers emails after intake, consent or symptom forms.
- Staff alerts. Emails to your own front desk or inbox saying a new intake, message or refill request arrived, often with the form fields pasted into the body. These count too: the email service still carries the PHI, even though the recipient is you.
- Results and portal notices. Your results are ready or You have a new message emails, especially if the subject names the test or the specialty.
- Attachments. PDFs of completed forms, visit summaries, invoices with procedure names, or photos patients uploaded.
- Your own logs. Some apps write the full email request to a server log when sending fails; check whether yours does. That log is a second copy of the same PHI, on whatever service holds your logs.
Do not assume an email address alone is harmless. HIPAA's safe-harbor method for de-identifying data lists email addresses among the identifiers that must be removed (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026). A patient's address, sent by your practice's app, may reveal that the person is your patient. Whether a specific content-free notice counts as PHI is a question for your counsel or privacy officer, not for the email vendor.
Practical rule: if you cannot say with confidence that an email has no patient connection at all, do not send it through SendGrid. Send it through a service with a signed BAA instead.
| Fine to keep on SendGrid (no patient connection) | Move off SendGrid (patient connection) |
|---|---|
| Staff-only admin tool sign-in emails, if the tool holds no patient data | Patient sign-in links, codes and password resets |
| Newsletters to colleagues or referring physicians that mention no patients | Appointment confirmations and reminders |
| Internal system alerts that contain only error codes, no record contents | Staff alerts that copy form answers or patient names |
| Test email to your own address using synthetic (made-up) patients | Form receipts, results notices, attachments, visit summaries |
For texting, the picture is different: SMS to and from US area codes can be HIPAA eligible under a Twilio BAA, with conditions (Architecting for HIPAA on Twilio, verified November 15, 2026). See Does Twilio sign a BAA? before you move patient reminders from email to text.
How this goes wrong: the IVF intake form that emails itself to the front desk
Imagine a fertility physician who builds a new-patient intake app over a few weekends. This is a hypothetical. She tells her coding agent: When a patient submits the form, email the front desk a summary, and email the patient a copy. The agent adds a SendGrid API key and writes the code in minutes. It works well.
Each front-desk summary holds the patient's name, date of birth, phone, partner's name, past pregnancies, current medications, and the lab report the patient uploaded, attached as a PDF. To sort the inbox, the agent also tags each message with the visit type. The patient's copy goes to whatever address she typed, sometimes a shared family inbox, with the subject line Your IVF consultation intake. When a send fails, the app writes the whole email, attachment included, into its server log, and the hosting service keeps that log.
Months later, a health system she works with asks for her list of vendors that handle PHI and a BAA for each (see A health system asked you for a BAA). She goes looking for a SendGrid BAA and finds Twilio's page instead: Twilio cannot sign one. Encrypting the attachment now would not help, because Twilio says added protections do not make SendGrid eligible (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026).
She now has two problems, not one. The first is engineering: move every patient email to a BAA-covered sender, cut the summaries down to a short notice, and clean the copies out of her logs. The second is legal: under the breach rule, an impermissible disclosure of PHI is presumed to be a breach unless a risk assessment shows a low probability that the PHI was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026). That assessment, and any notification decision, belongs to her and her counsel. A coding agent cannot make that call.
None of this required a hacker. It started with one sentence asking for an email.
What to use instead for patient email
The fix is usually a swap of one integration, not a new app. Your screens and workflow can stay. What changes is the service your code calls to send mail, and what you put in each message.
If you already host on AWS, or plan to
Amazon SES under an AWS BAA
Amazon SES, AWS's email service, is on the AWS HIPAA Eligible Services list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026). AWS says covered entities may not use its eligible services with PHI until an AWS BAA is in place (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026), and you still have to set those services up in line with HIPAA (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026). Note that AWS says its new sign-up experience is not designed for regulated workloads (Amazon Web Services (AWS), Compliance Validation for AWS Amplify - AWS Amplify Hosting, verified November 15, 2026). More in Is AWS HIPAA eligible?
If your agent suggested Resend instead
Check Resend first
Resend's own security page says it is not HIPAA compliant and cannot sign a BAA (Security · Resend, verified November 15, 2026), so switching from SendGrid to Resend does not solve this. Details in Does Resend sign a BAA?
If the message can be short
Send less, through a covered sender
Even under a BAA, keep each email to the minimum necessary (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026): You have a new message from your care team. Sign in to read it. Put the details behind your app's sign-in, not in the inbox.
Whichever sender you choose, ask for a BAA in writing before any patient email flows. A BAA must require the vendor to use appropriate safeguards (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026), report breaches to you (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026), hold its own subcontractors to the same terms (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026), and return or destroy PHI when the contract ends, if feasible (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026). Those are some of the required terms, not all of them. Ready-made request wording is in BAA request email templates.
Five steps to take this week
- Find every email your app sends. Ask your coding agent: List every place this app sends email, what service it uses, who receives it, and what fields go into the subject, body and attachments. Have it search for the word sendgrid in the code and settings.
- Sort each email into the two columns above. When in doubt, treat it as patient-connected.
- Strip patient details right away. While you arrange a replacement, change patient-connected emails to say only that something is waiting inside the app, or pause them. Use synthetic patients for testing.
- Check your logs. Make sure failed sends are not writing full email contents into server logs or error trackers.
- Record the decision. Your risk analysis must cover the risks to the electronic PHI you hold (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026). Note which email service you use, what it sends, and which BAA covers it. If PHI has already gone through SendGrid, bring your counsel or privacy officer in before you do anything else with that history.
Not sure what else in your stack touches PHI? Run your builder, database and hosting through the Stack Checker, or compare vendors in the BAA Matrix.
Keep, refactor, or rebuild?
Keep the app and keep SendGrid for email with no patient connection. Refactor any patient-connected email (sign-in links, reminders, form receipts, staff alerts with patient details) onto a sender with a signed BAA, because Twilio says it cannot sign a BAA for SendGrid and added encryption does not change that. Screens and workflow usually stay as they are.
For an app that uses SendGrid, the email problem on its own is a refactor of one integration: replace the sending service for patient-connected messages and trim what each message says. The rest of the app can usually stay. If SendGrid only sends emails with no patient connection, it can stay as it is. If email is only one of several services handling PHI without an agreement, read Keep, refactor, or rebuild? to judge the whole app.
Frequently asked questions
I already have a Twilio BAA for texting. Does it cover SendGrid?
No. Twilio says it is not able to sign BAAs for SendGrid (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026), and under a Twilio BAA, PHI may flow only through products on Twilio's eligible list (Twilio and HIPAA, verified November 15, 2026). Twilio also says the email channel of Verify is not HIPAA eligible (Architecting for HIPAA on Twilio, verified November 15, 2026). Keep patient texts under the Twilio BAA (Twilio limits eligibility to US numbers (Architecting for HIPAA on Twilio, verified November 15, 2026)) and move patient email elsewhere.
What if I encrypt the email or send a secure link instead of the details?
That reduces what is exposed, but Twilio says those protections do not make SendGrid a HIPAA Eligible Service (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026). Short, link-only messages are a good habit, but send them through a service with a signed BAA.
Can I keep SendGrid for patient password resets and sign-in links?
Those emails go to patients' addresses from your practice's app. Email addresses are among HIPAA's listed identifiers (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026), and SendGrid's terms say covered entities agree not to use the service in any manner involving PHI (Is Twilio SendGrid HIPAA Compliant? – SendGrid, verified November 15, 2026). Ask your counsel; the cautious path is to move patient sign-in email to a BAA-covered sender.
Isn't an email service just a pipe, like the post office?
HHS describes that conduit exception as narrow, covering mere transmission services such as the Postal Service, UPS or internet service providers (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). Either way, SendGrid's own terms say covered entities agree not to use it for PHI, so the argument does not change the practical answer.
My patients say they are fine with regular email. Doesn't that settle it?
Not for the vendor question. HHS has said a practice may send a patient unencrypted email if it warned the patient of the risk and the patient still prefers it (U.S. Department of Health and Human Services (HHS), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules (Omnibus Final Rule), Federal Register Vol. 78, No. 17, verified November 15, 2026). That is about the patient's choice of how to receive email. It does not change who your app sends the email through, and SendGrid's terms say covered entities agree not to use the service for anything involving PHI (Is Twilio SendGrid HIPAA Compliant? – SendGrid, verified November 15, 2026). Ask your counsel how patient email preferences fit your policies.
How does Fabrica handle email in a practice app?
PAHL signs a BAA with the practice and confirms one is in place with each vendor that handles PHI, so PHI stays in infrastructure covered by BAAs. Before each release, a check confirms that no new outside service receives PHI without an agreement. An email sender with no BAA is exactly what that check looks for.
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Found a SendGrid key in your patient app? Start with a short conversation about moving patient email under a BAA and what else in the app touches PHI.
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.
- Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
- Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
- Is Twilio SendGrid HIPAA Compliant? – SendGrid. Checked November 15, 2026.
- Twilio and HIPAA. Checked November 15, 2026.
- Architecting for HIPAA on Twilio. Checked November 15, 2026. Page dated Last Updated: June 30, 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).
- HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information.. 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.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).
- HIPAA Eligible Services Reference - Amazon Web Services (AWS). Checked November 26, 2026. Page dated Last Updated: November 16, 2026.
- Amazon Web Services (AWS), Compliance Validation for AWS Amplify - AWS Amplify Hosting. Checked November 15, 2026.
- Security · Resend. Checked November 15, 2026.
- HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements.. 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.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).
- 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.