Stack components
Does Twilio Sign a BAA? Texting Patients from Your Vibe-Coded App
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: Yes, Twilio signs a BAA (it calls it a Business Associate Addendum), but only for customers on Security Edition or Enterprise Edition, through Twilio sales. Even then, PHI may go only through eligible products inside designated HIPAA Projects (Twilio and HIPAA, verified November 15, 2026) (Architecting for HIPAA on Twilio, verified November 15, 2026). Sign the BAA and move your app onto a HIPAA Project before it texts patient details. Keep SendGrid email out.
Ask an AI app builder or coding agent to text patients a reminder, and it may wire in Twilio. The agent writes the code, you paste in an account ID and a secret key, and texts start going out. Whether that setup is acceptable for patient messages depends on which Twilio account it is, what agreement sits behind it, and what your app puts in each text.
A BAA (business associate agreement) is the contract HIPAA requires before a vendor handles protected health information (PHI) for your practice. Twilio calls its version a Business Associate Addendum to its Terms of Service. This page covers what Twilio itself says, as of November 15, 2026, and what that means for the texting feature in your app.
What Twilio says, in its own words (checked November 15, 2026)
Twilio offers a BAA, and requires it before PHI goes through Twilio. Twilio's HIPAA page says:
“Accordingly, customers that are subject to HIPAA and intend to utilize Twilio’s products and services to develop communication workflows containing PHI must execute a Business Associate Addendum (BAA) to Twilio’s Terms of Service .”
Only two editions qualify. Twilio states “Customers wishing to sign a BAA with Twilio must have our Security Edition or Enterprise Edition .” (Twilio and HIPAA, verified November 15, 2026) Twilio offers Editions as Administration, Security and Enterprise packages, and its Editions page lists one feature as HIPAA Accounts (Twilio Editions, verified November 15, 2026). You get the BAA by talking to a person, not by clicking a box: “Please contact your Twilio Account Representative or Contact Sales to learn more.” (Twilio and HIPAA, verified November 15, 2026)
The BAA covers HIPAA Projects, not your whole account. Twilio's architecture guide says customers “Customers looking to build HIPAA eligible workflows on Twilio must purchase a Twilio Editions package that contains the product offering HIPAA Accounts in order to designate their accounts, projects and subaccounts as HIPAA Project(s).” (Architecting for HIPAA on Twilio, verified November 15, 2026) A HIPAA Project is a Twilio account, project or subaccount that has been designated for HIPAA work. Once designated, the Twilio Console (the web dashboard) logs users out after 15 minutes of inactivity, because the Console can contain your PHI (Architecting for HIPAA on Twilio, verified November 15, 2026). Designation is not always automatic: Twilio says a new account or project created after the BAA is signed must be requested as a HIPAA Project (this applies to customers whose BAA was signed before June 6, 2024) (Architecting for HIPAA on Twilio, verified November 15, 2026).
Only listed products may carry PHI, even with a BAA. Twilio keeps a HIPAA Eligible Services list and says “Customers may use all other products and services that are not on this list, but there must be no potential for PHI being exchanged in violation of HIPAA as part of these workflows.” (Twilio and HIPAA, verified November 15, 2026) The same list says customers agree not to use even the eligible services with PHI before a BAA is signed (Twilio, HIPAA Eligible Services, verified November 15, 2026).
Text messages: US numbers only.
“Only SMS and MMS traffic to/from US area codes are considered HIPAA eligible at this time.”
Picture messages (MMS) have an extra rule: Twilio's media links are public by default, and HIPAA workflows must put password protection (HTTP basic auth) on them (Architecting for HIPAA on Twilio, verified November 15, 2026).
Required setup for every HIPAA workflow. Twilio requires HTTPS for your app's requests to Twilio and for Twilio's callbacks to your app, and requires your app to check Twilio's signature on those callbacks (Architecting for HIPAA on Twilio, verified November 15, 2026). A callback (webhook) is how Twilio tells your app a text was delivered or a patient replied.
Specific exclusions and cautions that affect practice apps:
- Email through Twilio SendGrid is out. Twilio's SendGrid documentation says “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).” (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026) Encrypting the email yourself or sending a secure link instead does not change that (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026).
- Login codes by email are out. Twilio Verify, the product that sends one-time sign-in codes, is limited to SMS and voice on US numbers for HIPAA use; its email channel is not eligible (Architecting for HIPAA on Twilio, verified November 15, 2026).
- WhatsApp and Facebook Messenger are out. “WhatsApp and Facebook Messenger cannot be used in conjunction with Programmable SMS for workflows requiring HIPAA compliance at this time.” (Architecting for HIPAA on Twilio, verified November 15, 2026)
- Message tags must hold no PHI. Message Tagging lets your app attach custom labels to each text; Twilio says no data that could be construed as PHI may go in those fields (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Support tickets must hold no PHI. When troubleshooting, Twilio says to use its message IDs rather than phone numbers (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Marketplace add-ons are out, even if you have a BAA with the add-on's maker (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Some newer AI products are out. Twilio says the newer Conversation Intelligence and Conversation Orchestrator products are not HIPAA Eligible Services (Architecting for HIPAA on Twilio, verified November 15, 2026). Twilio's own SMS bot product (Autopilot) is not eligible either; if you connect texts to an outside AI bot, Twilio says “However, it is the customer’s responsibility to ensure that the third-party application is used in a HIPAA-compliant manner.” (Architecting for HIPAA on Twilio, verified November 15, 2026)
Tools that help. Message Redaction can hide the full text body after sending, so it is no longer available in the Console, the API or Twilio's internal support systems, and can hide the last four digits of the patient's phone number. You switch both on in the Console (Architecting for HIPAA on Twilio, verified November 15, 2026). Twilio's Debugger log, by contrast, may show PHI to people who use the Console. Twilio says making sure those staff have the right access and training is your job (Architecting for HIPAA on Twilio, verified November 15, 2026).
What this means for your app
When a coding agent adds texting to your app, three pieces of patient data leave your system on every message: the patient's phone number, the words of the text, and anything the agent attached as labels. Replies come back the same way. Twilio offers Message Redaction so the full message body is no longer available in the Console, the API or its support systems after sending (Architecting for HIPAA on Twilio, verified November 15, 2026). Ask Twilio what it keeps, and for how long, if you leave redaction off. Under HIPAA, a company that receives, maintains or transmits PHI for your practice is a business associate (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and HHS calls the mere-conduit exception, the one for things like the postal service, a narrow one (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). Twilio itself requires HIPAA customers to sign its BAA before PHI goes through it (Twilio and HIPAA, verified November 15, 2026).
A phone number alone, sent from a practice's reminder system, can reveal that this person is your patient. Your counsel or privacy officer decides how to treat that, but the safe assumption for planning is that every Twilio account your app touches needs to be a BAA-covered HIPAA Project.
Where PHI hides in a typical vibe-coded texting feature:
- Message templates in your code. An agent may write a friendly template that fills in the first name, the provider and the visit reason. The visit reason is the part that adds clinical detail.
- Message tags. An agent may label each text for reporting with the visit type or provider. Twilio says those fields must not carry PHI (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Inbound replies. Patients may answer a reminder with symptoms, photos or questions. Those land in your app through the Twilio callback, then often in your database, your server logs and your error tracker.
- Fallback channels. If you ask for an email fallback when a text fails, the agent may reach for SendGrid, which Twilio says must not carry PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026). See Does SendGrid sign a BAA? and the Resend page before picking an email path.
- Login codes. If your patient portal texts sign-in codes through Twilio Verify, that sits inside the same rules: SMS or voice, US numbers, no email channel (Architecting for HIPAA on Twilio, verified November 15, 2026). The auth provider question is covered on the Clerk page.
- The Twilio Console and support. Staff who open Debugger or message logs may see PHI (Architecting for HIPAA on Twilio, verified November 15, 2026), and anything pasted into a support ticket is off-limits for PHI (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Your builder's chat. When a text fails, the fastest fix is pasting the error and the message into your AI builder. That sends the message content to the builder too.
Even with a BAA, HIPAA's minimum necessary rule asks you to make reasonable efforts to limit PHI to what the purpose needs (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). For a reminder, a date, a time, a place and a callback number usually do the job.
How this goes wrong: the post-op reminder bot that texts, tags and emails
This is a hypothetical. Imagine a solo dermatologist who builds a post-procedure follow-up app with an AI app builder. She asks the agent to text patients a wound-check reminder two days after a Mohs procedure and to let them text back photos. Following the agent's setup steps, she opens a standard self-serve Twilio account, not Security or Enterprise Edition, and has the integration working in an afternoon.
Each reminder reads something like: Hi, this is your dermatology office, checking on your nose after Monday's skin cancer surgery. Reply with a photo of the site. The agent also tags every message with the procedure type and the site so she can see reply rates by procedure. Patients reply with close-up photos, which arrive as MMS on public media links. When a text fails, the app falls back to an email through SendGrid with the same wording. One week a batch of texts fails, and her office manager opens a Twilio support ticket listing the affected patients' phone numbers.
Nothing broke, and every patient got their reminder. But measured against Twilio's own pages: there was no BAA and no HIPAA Project, so PHI went through services Twilio says must not be used with PHI before a BAA (Twilio, HIPAA Eligible Services, verified November 15, 2026); the procedure and body site sat in message tags (Architecting for HIPAA on Twilio, verified November 15, 2026); wound photos sat behind media links that were not password-protected (Architecting for HIPAA on Twilio, verified November 15, 2026); the fallback emails went through a service Twilio cannot sign a BAA for (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026); and the support ticket carried patient numbers (Architecting for HIPAA on Twilio, verified November 15, 2026). Under HIPAA, an impermissible disclosure is presumed to be a breach unless a risk assessment of set factors shows a low probability that the PHI was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026). Whether any of this is reportable is a call for her counsel, made after the fact, when it is hardest to make.
The fix list is short. The cleanup after the fact is not.
Do and don't: Twilio in a practice app
Do
- Get the BAA signed through Twilio sales, on Security Edition or Enterprise Edition, before any real patient number goes in (Twilio and HIPAA, verified November 15, 2026).
- Make sure the exact account, project or subaccount your app uses is designated as a HIPAA Project (Architecting for HIPAA on Twilio, verified November 15, 2026). Keep test accounts separate and free of real patient data.
- If you add a new Twilio account or project later, confirm with Twilio that it is designated too; for customers whose BAA predates June 6, 2024, Twilio says new ones must be requested (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Use HTTPS both ways and have your app check Twilio's signature on every callback (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Turn on password protection for MMS media links if patients can send or receive pictures (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Consider Message Redaction so message bodies are not kept visible in the Console or API (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Write templates with only what the patient needs to act: date, time, place, a number to call.
- Limit who has Twilio Console access, and give them training, since Debugger and logs may show PHI (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Troubleshoot with Twilio message IDs, never phone numbers or message text (Architecting for HIPAA on Twilio, verified November 15, 2026).
Don't
- Don't send texts that contain patient information from a standard self-serve Twilio account; the BAA requires Security Edition or Enterprise Edition (Twilio and HIPAA, verified November 15, 2026).
- Don't put diagnoses, procedures, medications or patient names in Message Tagging fields (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Don't use Twilio SendGrid (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026), Verify's email channel (Architecting for HIPAA on Twilio, verified November 15, 2026), or Email in Flex (Architecting for HIPAA on Twilio, verified November 15, 2026) for anything involving PHI.
- Don't add WhatsApp or Facebook Messenger to a HIPAA texting workflow (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Don't text patients on non-US numbers through the HIPAA workflow (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Don't add Twilio Marketplace add-ons to a HIPAA workflow (Architecting for HIPAA on Twilio, verified November 15, 2026) or the newer Conversation Intelligence product (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Don't connect an outside AI bot to patient texts until you have confirmed it is used in a HIPAA-compliant way. Twilio puts that check on you (Architecting for HIPAA on Twilio, verified November 15, 2026).
- Don't assume Twilio's quiet-hours tools cover state health-messaging laws; Twilio says its Compliance Toolkit does not enforce state-specific healthcare telecommunication regulations (Architecting for HIPAA on Twilio, verified November 15, 2026).
What to ask Twilio before you sign
The route Twilio describes for getting a BAA is an account representative or sales (Twilio and HIPAA, verified November 15, 2026). Bring these questions to that conversation, and have your counsel read the addendum itself:
- Which of our accounts, projects and subaccounts will be designated as HIPAA Projects, and how do we confirm that in the Console?
- Which products in our build are on the current HIPAA Eligible Services list? Name each one your app calls: messaging, phone numbers, Verify, Studio, Functions.
- How does the addendum handle breach reporting, subcontractors, and return or destruction of data at the end of the contract? HIPAA requires business associate contracts to cover each of these (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026) (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026) (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026).
- What message data is retained, for how long, and what does Message Redaction remove?
Then record Twilio in your Security Risk Analysis, which HIPAA treats as required, not optional (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026). For a side-by-side of every vendor in a typical vibe-coded stack, see the dated BAA matrix, or run your own stack through the Stack Checker.
Keep, refactor, or rebuild?
Keep the texting feature and the screens around it if the app already sends texts through Twilio's messaging APIs. Move it onto a Security or Enterprise Edition account with a signed BAA and a designated HIPAA Project, strip PHI out of message tags, and trim the templates. Refactor if the feature depends on pieces Twilio excludes from HIPAA use, such as a SendGrid email fallback, WhatsApp, Marketplace add-ons or the newer Conversation Intelligence product. Those parts have to be replaced, not reconfigured.
The code that sends a text can often stay. What changes is the account it points at, the agreement behind that account, and the content and labels it sends. For a reminder or follow-up feature, that is typically a configuration and template change plus replacing any email fallback. If your app is part of a larger scheduling flow, the online scheduling guide covers the rest of the data path.
Frequently asked questions
Can I text patients appointment reminders through Twilio?
Twilio treats SMS and MMS to and from US area codes as HIPAA eligible (Architecting for HIPAA on Twilio, verified November 15, 2026), but PHI can go through them only after you sign a BAA on Security Edition or Enterprise Edition and the account is a designated HIPAA Project (Architecting for HIPAA on Twilio, verified November 15, 2026). What each reminder says is your practice's decision; keeping it to date, time and place keeps PHI to the minimum necessary (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).
Does Twilio sign a BAA on a standard or trial account?
Twilio's HIPAA page names only two editions: “Customers wishing to sign a BAA with Twilio must have our Security Edition or Enterprise Edition .” (Twilio and HIPAA, verified November 15, 2026) A standard self-serve account does not qualify. To get a BAA, Twilio points you to your account representative or its sales team (Twilio and HIPAA, verified November 15, 2026).
My app uses Twilio for texts and SendGrid for emails. Does one BAA cover both?
No. Twilio says it cannot sign a BAA for SendGrid and that SendGrid should not be used for anything involving PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026). Patient emails need a different, BAA-covered email path. See the SendGrid page.
Can patients reply with photos?
MMS on US numbers can be part of a Twilio HIPAA workflow, but Twilio requires password protection (HTTP basic auth) on media links, which are public by default (Architecting for HIPAA on Twilio, verified November 15, 2026). Plan for where those photos land in your own app as well: database, file storage and logs.
Can I use Twilio Verify to text login codes to patients?
For HIPAA workflows, Twilio limits Verify to SMS and voice on US numbers, and says its email channel is not eligible (Architecting for HIPAA on Twilio, verified November 15, 2026).
Can an AI chatbot answer patient texts that come in through Twilio?
Twilio's own SMS bot product is not HIPAA eligible, and if you connect a third-party bot, Twilio says making sure it is used in a HIPAA-compliant way is your responsibility (Architecting for HIPAA on Twilio, verified November 15, 2026). If the bot receives PHI for your practice, its maker may be a business associate too (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026); your counsel decides. See our pages on the OpenAI API and the Anthropic API.
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Already texting patients from an app you built? A short call can map which Twilio account, templates and fallbacks touch patient data today.
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 and HIPAA. Checked November 15, 2026.
- Architecting for HIPAA on Twilio. Checked November 15, 2026. Page dated Last Updated: June 30, 2026.
- Twilio Editions. Checked November 15, 2026.
- Twilio, HIPAA Eligible Services. Checked November 15, 2026. Page dated Last Updated: June 30, 2026.
- Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
- 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 (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.
- Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
- 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.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 (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).