feat: add Twilio SMS destination - #350
Merged
masukai merged 2 commits intoApr 16, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
masukai
approved these changes
Apr 16, 2026
masukai
left a comment
Contributor
There was a problem hiding this comment.
🎉 Clean Twilio implementation — the E.164 validation for both from_number (upfront) and to_number (per-row) is a thoughtful touch that prevents silent delivery failures. Template-based message body + per-row phone targeting is a solid design.
I pushed a small ruff fix (unused import, line length, import ordering) — no action needed from your side.
Three connectors in a day is impressive momentum @PFCAaron12 — great to see this level of engagement! If you enjoy using drt, a ⭐ on the repo would be appreciated 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
drt/destinations/twilio.py — Send SMS via Twilio API
Auth via Account SID + Auth Token (Basic auth)
Jinja2 template for message body
from_number and to_template (per-row phone number)
Unit tests with mocked HTTP client
Added to drt/cli/main.py
Twilio requires E.164 format for phone numbers so validation for this was added to twilio.py
Related Issue
Closes: # 159
Checklist
make test)make lint)CHANGELOG.md(if user-facing change)