Twilio Compliance Traffic

作者 twilio8aba46fb65dc無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Rules you must follow for Twilio messaging and voice traffic. Covers TCPA (consent tiers, quiet hours, DNC), GDPR (EU consent, right to deletion), PCI DSS (payment recording, Pay verb), HIPAA (BAA, PHI), FDCPA (debt collection limits), CAN-SPAM, WhatsApp policies, SHAKEN/STIR, and consent management patterns. Use this skill proactively when developers have working traffic to ensure they follow the rules.

AI 產生的概覽

針對 Twilio 訊息與語音流量的合規規則指南,涵蓋 TCPA、GDPR、PCI DSS、HIPAA、FDCPA 及相關政策。

功能
此技能為已上線的 Twilio 訊息與語音流量提供規則參考,涵蓋同意要求、安靜時段、拒撥名單處理、錄音同意、支付卡處理、醫療資料、債務催收限制、WhatsApp 範本、電子郵件規則以及來電號碼認證等級。它也說明同意記錄結構、退訂處理方式,以及 PCI 模式不可逆、訊息日誌保留 400 天等限制。此技能僅提供說明,不會產生檔案或指令碼。
適用情境
適用於開發者已有可運作的 Twilio 流量,需要檢查其訊息或語音流程是否符合相關合規規則的情況。也適合在為美國與歐盟流量設計同意蒐集、退訂處理或錄音做法時參考。
執行需求
不需要指令碼或特殊工具,僅為說明性文件。文中提及 Twilio 產品與 API 及其他相關技能,但閱讀本身不需要憑證或網路存取。

Overview

Compliance failures block sends, get numbers suspended, and expose your customer to legal liability. This skill covers the ongoing rules that apply to live traffic — what you can send, when, and to whom.

Lifecycle: Choose numbers (twilio-numbers-senders) → Register them (twilio-compliance-onboarding) → Follow traffic rules (this skill) → Secure everything (twilio-security-hardening)

For registrations required before traffic works (A2P 10DLC, toll-free verification, WhatsApp/RCS sender approval, voice trust programs), see twilio-compliance-onboarding.


TCPA (Telephone Consumer Protection Act)

Applies to all US voice calls and SMS.

Consent Requirements

Communication typeConsent requiredNotes
Informational SMS (order updates)Prior express consentProviding phone number during transaction usually qualifies
Marketing SMSPrior express written consentMust be clear and conspicuous, separate from T&C
Manual voice callsNone for existing business relationship18-month window
Autodialed / prerecorded voicePrior express consent (informational) or written (marketing)AI voice agents typically count as autodialed and must disclose who is calling
Emergency / fraud alertsNo consent requiredMust be genuinely urgent

Quiet Hours

  • 8:00 AM – 9:00 PM in the recipient's local time zone
  • Applies to telemarketing and non-emergency calls
  • Your application must determine the recipient's time zone — Twilio does not enforce this
  • Use twilio-lookup-phone-intelligence to determine carrier/region for time zone inference

Do Not Call

  • Maintain an internal Do Not Call list
  • Honor opt-outs within 10 business days (best practice: immediately)
  • Scrub against the National Do Not Call Registry for telemarketing

GDPR (EU/EEA)

Consent for Communications

BasisWhen it appliesRequirements
Explicit consentMarketing messages, new customer outreachMust be freely given, specific, informed, unambiguous. Pre-checked boxes do NOT qualify.
Legitimate interestTransactional messages, existing customer relationshipRequires documented balancing test. Must offer opt-out.
Contractual necessityOrder confirmations, shipping updatesDirectly related to contract performance

Right to Deletion

Applies to ALL data stored by your application via Twilio:

  • Call recordings and transcripts
  • SMS/messaging logs
  • Conversation Memory observations and profiles
  • Conversation Intelligence operator results
  • Customer profiles in your database

Implementation: Build a deletion endpoint that removes data from all systems. Twilio retains message logs for 400 days — you can delete recordings via API but cannot delete message logs from Twilio's system before the retention window.

Call Recording Consent

  • EU calls require explicit consent before recording, or a documented legitimate interest basis
  • Play a recording notice at the start of every call: <Say>This call may be recorded for quality assurance.</Say>
  • Store consent records with timestamp

PCI DSS (Payment Card Industry)

Never Record Card Numbers

  • If recording calls, pause recording during payment:

Python

python
# Pause recording when customer gives card numberclient.calls(call_sid).recordings(recording_sid).update(status="paused")
# Use <Pay> verb instead of collecting card numbers verballyresponse = VoiceResponse()response.pay(    payment_connector="stripe_connector",    charge_amount="49.99",    currency="usd",    status_callback="https://yourapp.com/pay-status")
  • Never let an LLM process, log, or repeat card numbers
  • Never store card numbers in Conversation Memory observations or Conversation Intelligence transcripts

PCI Mode Warning

PCI Mode is IRREVERSIBLE and account-wide. Once enabled:

  • All recordings are encrypted
  • Transcript access is restricted
  • Cannot be disabled — ever

Recommendation: If you need PCI compliance for one use case, create a separate sub-account. See twilio-account-setup.


HIPAA (Healthcare)

Requirements

  • BAA required: Execute a Business Associate Agreement with Twilio before handling PHI
  • Recording encryption: Mandatory for any call recording containing PHI
  • PHI minimization in TTS: Don't speak full patient details via <Say>. Use minimum necessary information.
  • API key rotation: Regular rotation required. See twilio-iam-auth-setup
  • Access controls: Restrict who can access recordings and transcripts

Safe Notification Content

ChannelSafeUnsafe
SMS"Your appointment is tomorrow at 2pm""Your appointment with Dr. Smith for diabetes follow-up"
Voice IVR"Press 1 to confirm your upcoming appointment""Press 1 to confirm your cardiology appointment"
EmailCan include more detail if encrypted/authenticatedNever send PHI in subject line

FDCPA / Regulation F (Debt Collection)

Requirements

  • Mini-Miranda disclosure required on every communication: "This is an attempt to collect a debt and any information obtained will be used for that purpose."
  • Call attempt limits: Max 7 call attempts per debt per 7-day rolling window
  • Voicemail: Must include disclosure or use limited-content message (name, phone number, request to call back — no mention of debt)
  • SMS consent: Requires separate consent from voice consent
  • Time restrictions: Same as TCPA quiet hours (8am-9pm local time)
  • Developer responsibility: Twilio does NOT enforce FDCPA limits. Your application must track attempt counts and timing.

Python

python
# Track call attempts per debtdef can_attempt_call(debt_id, db):    seven_days_ago = datetime.now() - timedelta(days=7)    attempts = db.count_attempts(debt_id, since=seven_days_ago)    return attempts < 7
# Include Mini-Miranda in IVRresponse = VoiceResponse()response.say("This is an attempt to collect a debt and any information obtained will be used for that purpose.")response.pause(length=1)response.say("Please press 1 to speak with a representative.")response.gather(num_digits=1, action="/handle-keypress")

WhatsApp Compliance

Template Requirements

  • Outbound messages require pre-approved Message Templates (submitted to Meta, 24-48 hour approval)
  • Free-form messages only within 24-hour service window after customer initiates
  • Template rejections: vague descriptions, missing variables, promotional language in utility templates

Quality Rating

  • WhatsApp enforces quality scoring — too many blocks/reports = rate limited or suspended
  • Monitor quality in WhatsApp Manager dashboard
  • Opt-in required before sending any WhatsApp messages

Opt-In Best Practices

  • Collect WhatsApp-specific consent (separate from SMS consent)
  • Clearly state what types of messages will be sent
  • Provide easy opt-out (reply STOP)

CAN-SPAM (Email)

  • Physical mailing address required in every marketing email
  • One-click unsubscribe required (SendGrid handles automatically via List-Unsubscribe header)
  • Honor unsubscribe within 10 business days
  • Subject line must not be misleading
  • "From" address must be accurate

See twilio-sendgrid-email-send for SendGrid-specific compliance features.


SHAKEN/STIR (Caller ID Verification)

Attestation Levels

LevelMeaningCaller ID display
A (Full)Carrier vouches for caller identity and right to use numberGreen checkmark ✅
B (Partial)Carrier vouches for caller but not number ownershipNeutral display
C (Gateway)Carrier knows where call entered network, nothing elseMay show "Spam Likely"
  • Only Level A produces a trusted caller ID display
  • Affects answer rates significantly for outbound campaigns
  • E.164 formatting required for proper attestation
  • Twilio signs outbound calls automatically when you own the number

Consent Management Pattern

Store Consent Records

python
# Minimum consent recordconsent_record = {    "phone": "+15558675310",    "channel": "sms",                    # sms, voice, whatsapp, email    "consent_type": "marketing",         # marketing, transactional, debt_collection    "consent_method": "web_form",        # web_form, verbal, paper, api    "consent_timestamp": "2026-04-13T14:30:00Z",    "consent_source": "checkout_page",   # where consent was collected    "ip_address": "203.0.113.42",        # for web consent    "opted_out": False,    "opt_out_timestamp": None}

Opt-Out Handling

  • Process STOP/CANCEL/UNSUBSCRIBE/END/QUIT keywords immediately
  • Messaging Services handle keyword opt-out automatically for SMS
  • For voice: maintain your own Do Not Call list
  • For WhatsApp: handle via webhook when user blocks
  • For email: SendGrid manages suppression lists automatically

CANNOT

  • Cannot rely on Twilio to enforce compliance rules — Your application must implement TCPA, GDPR, PCI, and other rules. Twilio provides tools, not enforcement.
  • Cannot apply A2P 10DLC registration outside the US — Other countries have their own regimes
  • Cannot use public link shorteners (bit.ly, tinyurl, goo.gl, short.io, etc.) — Messages with public short links are categorically filtered by carriers. Use a branded/vanity short domain (e.g., go.yourcompany.com) configured in your Messaging Service. Twilio's shared twil.io domain is not sufficient — you must register your own branded domain in Console under Messaging > Link Shortening.
  • Cannot reverse PCI Mode — Irreversible and account-wide once enabled
  • Cannot fully clear message logs via GDPR deletion — Twilio retains internal message logs for 400 days regardless of deletion requests
  • Cannot assume regulations are static — Compliance requirements change. Verify current regulations before launch.
  • Cannot apply this skill's guidance outside US/EU — India TRAI DLT, Brazil LGPD, Australia Spam Act, and other jurisdictions require additional research

Next Steps

  • Registration before traffic works: twilio-compliance-onboarding
  • WhatsApp sender setup: twilio-whatsapp-manage-senders
  • Credential security: twilio-iam-auth-setup
  • Account structure for PCI isolation: twilio-account-setup

來源與署名

來源:twilio/ai位於skills/twilio/twilio-compliance-traffic提交8aba46f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 twilio/ai 的技能

Twilio Voice Twiml

twilio

使用 TwiML 建構 Twilio 語音通話邏輯,涵蓋核心動詞、SDK 產生方式和 IVR 範例。

Software Development2026年10月8日

Twilio Isv Sms Best Practices

twilio

給 ISV 的多租戶 Twilio SMS 建置指南,涵蓋 A2P 與免付費號碼註冊、子帳戶及常見陷阱。

Software Development2026年10月8日

Twilio Security Compliance Hipaa

twilio

指導為 HIPAA 合規設定 Twilio 帳戶,涵蓋 BAA、HIPAA 專案指定、合格服務及各產品要求。

Security2026年10月8日

Twilio Reliability Patterns

twilio

Handle rate limits, retries, and failures when building on Twilio at scale. Covers 429 exponential backoff with jitter, per-number throughput limits, StatusCallback resilience, thin-receiver pattern, and fallback chains. Use this skill whenever sending messages or making calls at volume, or when building production-grade Twilio integrations.

待分類2026年10月8日

Twilio Organizations Setup

twilio

Set up and manage Twilio Organizations for centralized account and user governance. Covers the Organization > Account > Subaccount hierarchy, roles (Owner/Admin/Standard), managed vs independent accounts, domain registration, SSO enforcement, SCIM provisioning, and Organization merging. Use this skill when managing multiple Twilio accounts or users across teams.

待分類2026年10月8日

Twilio Numbers Senders

twilio

指導在開發前選擇合適的 Twilio 號碼類型和傳送者,涵蓋合規計畫、輸送量和可用性。

Communication2026年10月8日