Twilio
Reads the message and call records of a Twilio account, so contact centre agents can answer what was sent or called, when, and how it ended. By default it reads no message bodies and masks phone numbers to their last four digits.
Built against the Twilio REST API 2010-04-01 (Message resource and Call resource).
At a glance
Section titled “At a glance”| Collector | Twilio, version 0.1.0 |
|---|---|
| Reads | Twilio: Twilio Programmable Messaging and Programmable Voice (message and call records) (the vendor's documentation) |
| Family | Communication |
| Kind | Messaging |
| Ways to connect | Access token |
| Scopes |
|
| Read only | Yes |
| Vendor's API can move money | No |
| Personal data | Contact, Content |
| Hosts it may contact | api.twilio.com, api.{edge}.{region}.twilio.com |
| Vendor API versions | Twilio REST API 2010-04-01: Message resource (list), Call resource (list) |
| Lowest engine version | 0.47.1 |
What it reads
Section titled “What it reads”- Messages (SMS, MMS and other channels Twilio lists as messages): direction, status, sender and recipient (masked), segment and media counts, error code and message, price, messaging service and the sent date.
- Calls: direction, status, caller and called party (masked), start and end, duration, price, answered-by and the parent call.
- The first read looks back seven days; later reads start the day before the newest date seen, because Twilio filters by whole days and a message’s status changes after it is sent. Each list is paged by following the
next_page_uriTwilio returns, within the account’s own path. - Never read by default: message bodies (
include_bodies: truereads them, cut to 1,600 characters), media, recordings, transcriptions, conversations and any account settings.
How to connect
Section titled “How to connect”- In the Twilio Console, create a restricted API key and give it read permissions on Messaging messages and Voice calls only (for messages,
/twilio/messaging/messages/read). For an account in a Twilio Region other than US1, create the key in that Region. - In LightHouse, open Connectors, choose Twilio, give the account SID (
AC...), the Region and edge if the account is not in US1, a label and how often to read, and paste the key SID and secret. - In code, give the deployment the key SID as
TWILIO_API_KEYand the secret asTWILIO_API_SECRETfrom your secret store, and add akind: twiliosource card withaccount_sid,labelandrequires.key_envandsecret_envchange the variable names;regionandedge,kinds,lookback_days,include_bodies,body_charsandmask_numberschange what is read.
Permissions
Section titled “Permissions”A restricted API key with read permissions on messages and calls. The collector sends only GET requests to the Twilio API host, with the key as HTTP Basic credentials; it never sends a message, places a call or changes the account. Its read-only test proves it on every change. Do not use a Main or Standard key: they can send messages and place calls.
Limits
Section titled “Limits”- The account SID must be
ACand 32 hex characters; the Region and edge are set together and name the hostapi.<edge>.<region>.twilio.com. A regional key works only against its own Region. - Twilio filters by whole days (UTC), so an incremental read re-reads the last day; the contract writer makes an unchanged record free.
- A pull reads at most 50 pages of 1,000 records per kind; a busier account is read over several pulls only from the newest day seen, so set the schedule to match the volume.
- Records are history: a message or call is never withdrawn.
- Requests are paced and back off when Twilio asks (
Retry-After).
Data handling
Section titled “Data handling”- Phone numbers identify people: they are masked to their last four digits unless
mask_numbers: false. SIP addresses and client names are reduced to their kind. - Message bodies are personal data and can hold anything a customer writes; they are not read unless
include_bodies: true, and then they are cut tobody_charscharacters. Set it only where the deployment is approved to hold message content. - Records are copied into the deployment’s corpus under the source’s
label. - The key secret stays in your secret store and is never written to logs or run notes; it is sent only to the Twilio API host.
- Nothing leaves the deployment: only counts reach LightHouse.
Troubleshooting
Section titled “Troubleshooting”| What you see | What it means | What to do |
|---|---|---|
account_sid must be a Twilio account SID |
The SID is not AC and 32 hex characters |
Copy the account SID from the Twilio Console |
region and edge are set together |
Only one of the two is set | Set both, for example ie1 and dublin |
credential variable 'TWILIO_API_KEY' is not set |
The key variable is empty | Set it from your secret store |
HTTP 401 |
The key is revoked, wrong, or for another Region | Make a new restricted key in the account’s Region |
HTTP 403 |
The key lacks read permission on messages or calls | Add the read permission, or narrow kinds |
next_page_uri leaves the account's ... list |
Twilio answered with a page link outside the account | Report it; the read stops rather than follow it |
| Read succeeded, 0 written | Nothing new since the last read | Nothing to do |
Certification
Section titled “Certification”Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See How collectors are certified.
| Date | Collector | Engine | Vendor API | Method | Expires |
|---|---|---|---|---|---|
| 21 November 2026 | 0.1.0 | 0.47.1 | Twilio REST API 2010-04-01: Message resource, Call resource | Fixtures only: built, not certified | Not applicable |
Security posture
Section titled “Security posture”From the collector’s last scan on the default branch. What each line means, and what blocks a release: Security posture.
| Last scanned | 25 November 2026 |
|---|---|
| Critical findings | 0 |
| High findings | 0 |
| Medium findings | 0 |
| Low findings | 0 |
| Info findings | 0 |
| Release blocked | No |
| Network allow-list check | Pass |
| Read-only behavioural test | Pass |
| SBOM (CycloneDX) | Produced |
| Dependency licences | Pass |
| Scanners | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |