Prompt
How do I troubleshoot SMS opt-out issues?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
Here’s a practical way to troubleshoot SMS opt-out issues.
1) Confirm what “opt-out” means in your flow
Different systems treat opt-out differently:
- STOP usually means the user should be unsubscribed from all marketing texts.
- Some systems support help, unsubscribe, cancel, end, quit, etc.
- Make sure you know whether the issue is:
- the SMS platform not recognizing the keyword,
- your app not updating subscriber status,
- or messages still being sent after opt-out.
2) Check the inbound message was received
Verify the carrier/SMS provider actually delivered the inbound SMS to your system:
- Look at your provider’s message logs.
- Confirm the webhook/callback fired.
- Check for:
- HTTP 200 responses
- timeouts
- webhook authentication failures
- malformed payloads
3) Verify keyword handling
Make sure your system:
- Normalizes text properly:
- uppercase/lowercase
- leading/trailing spaces
- punctuation like “STOP!”
- Recognizes common variants:
STOPUNSUBSCRIBECANCELENDQUIT
- Handles multilingual opt-out keywords if applicable.
4) Confirm the subscriber status changes correctly
After receiving the opt-out:
- The contact should be marked as opted out, suppressed, or do not message.
- Check the database or contact record.
- Ensure the opt-out applies to the correct phone number and campaign/lane.
Common bug:
- The inbound SMS is logged, but the suppression flag is never saved.
5) Check message-sending logic
Even if the user is opted out, outbound messages may still go out if:
- your send pipeline doesn’t check suppression status,
- cached audience lists aren’t refreshed,
- scheduled campaigns were already queued,
- multiple systems send messages and one isn’t honoring opt-outs.
Look for:
- suppression list filters
- audience segmentation logic
- queue workers using stale data
6) Review carrier and compliance rules
In many regions and messaging programs, opt-out must be immediate or near-immediate. Check:
- local SMS compliance requirements
- your provider’s messaging policy
- whether short codes, toll-free numbers, and 10DLC have different rules
If you’re sending marketing texts, opt-outs must generally stop future marketing messages right away.
7) Inspect edge cases
Common edge cases:
- User texts “STOP” to a different number than expected
- Multiple phone numbers on one contact
- Shared numbers/family plans
- Unicode or special characters
- Two-way messaging disabled
- Messages routed through multiple vendors
8) Test with a controlled scenario
Try:
- Send a test message to a known number.
- Reply with
STOP. - Confirm:
- inbound webhook received
- opt-out stored
- confirmation message sent, if your provider does that
- future outbound messages are blocked
9) Check provider-specific features
Your SMS provider may automatically handle STOP/HELP for certain sender types. Verify:
- whether auto-handling is enabled
- whether your app is overriding provider behavior
- whether you need to sync opt-out status back into your CRM
10) Add logging and alerts
To make future troubleshooting easier:
- log inbound keyword detection
- log opt-out database updates
- log suppression checks before sending
- alert on outbound messages sent to opted-out numbers
Quick checklist
- Inbound SMS received
- STOP keyword recognized
- Subscriber marked opted out
- Suppression checked before sending
- No queued messages slip through
- Compliance rules followed
If you want, I can also give you:
- a step-by-step debugging checklist,
- a sample webhook flow for STOP handling,
- or troubleshooting tips for a specific SMS provider like Twilio, Sinch, or Bandwidth.