Unfortunately, as REDCap administrators, We don't have any way to troubleshoot the Twilio side of things for individual projects since each project has to have their own Twilio account associated with their own billing. However, we can offer the following advice for project administrators.
REDCap tracks Twilio-sent survey invitations across a few specific logs, depending on how you send them:
Survey Invitation Log: Records invitations sent through the Participant List or Automated Survey Invitations, letting you check past invitations and see delivery errors. Note that sending a survey link immediately via a manual/one-off action is generally not added to the Survey Invitation Log.
Project Logging (Audit Trail): Records user-initiated actions—such as sending a survey link immediately—and general project activity.
Alerts and Notifications Log: Tracks SMS/voice alerts sent via REDCap's Alerts and Notifications feature rather than survey invitations.
What stays in REDCap vs. Twilio:
REDCap stores your survey responses and participant tracking data securely inside REDCap. REDCap also runs a regular cleanup to scrub SMS/voice metadata and transcripts from Twilio's servers shortly after completion rather than leaving them permanently logged on Twilio. For detailed error reasons (like carrier blocks or insufficient Twilio balance), you may still need to check your Twilio account directly.
When troubleshooting undelivered SMS messages sent via Automated Survey Invitations (ASIs) and Twilio, check the Survey Invitation Log first to confirm whether REDCap attempted the send, then verify your phone field formatting, ASI delivery settings, and Twilio account status.
1. Check the Survey Invitation Log in REDCap
Go to Survey Distribution Tools > Survey Invitation Log (you can filter by Sent vs. Not Yet Sent and look for error indicators).
Invitation is missing from the log: The ASI never triggered. Check your ASI trigger logic (e.g., conditional logic syntax, missing field values, or the survey was already completed). Also check Project Setup > Additional Customizations to confirm the designated Phone number field is properly selected and populated for that record.
Invitation is stuck in "Not Yet Sent": Your scheduled send time hasn't passed yet, or REDCap's cron job is delayed/blocked.
Invitation shows an error or "Sent" status, but no text arrived: REDCap handed the request off to Twilio, meaning the failure happened at the Twilio or carrier level.
2. Verify ASI & Phone Field Configuration
Delivery Preference: In your ASI settings, check How should the invitation be sent?. If it is set to "Use participant's preference", REDCap will default to email unless the participant's preference field is explicitly set to SMS/Voice. Set it to SMS directly if you always want a text sent.
Number Formatting & Country Code: Ensure the phone field validates as a phone number and includes the proper country code if required by your Twilio setup (e.g., +1 for North America), without extra text or extensions.
Invitation Type: Confirm you selected SMS (text message) and not Voice call, as landlines or blocked numbers behave differently.
3. Check Twilio Console Logs (If REDCap Says "Sent")
Because REDCap only logs that it passed the message to Twilio's API—and routinely scrubs Twilio message details for privacy—log into your Twilio Console (Monitor > Logs > Messaging) to see the exact delivery status and error code:
Error 30034 / 30007 (Carrier Filtering / A2P 10DLC): Very common in North America. Carriers block SMS messages if your Twilio number isn't registered under an approved A2P 10DLC campaign (or Toll-Free verification), or if the message text looks like spam (e.g., using public URL shorteners instead of REDCap's built-in survey link).
Error 21610 (Unsubscribed Recipient): The participant previously replied STOP to your Twilio number, blocking future texts.
Error 21211 / 21614 (Invalid or Landline Number): The number is formatted incorrectly or is a landline that cannot receive SMS.
Account / Geo-Permissions: Your Twilio balance is depleted, or SMS permissions for the recipient's country/region are disabled in Twilio's Messaging > Settings > Geo Permissions.