Twilio · api · fg-0160

Error 21610 after a recipient texts STOP, and the API cannot override it

If you see 21610 Attempt to send to unsubscribed recipient, the cause and the fix for Twilio are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
21610 Attempt to send to unsubscribed recipientMessages to one number fail while every other number succeeds
Cause
Twilio processes STOP and the other opt-out keywords itself and blocks further messages from that sender or Messaging Service until the person texts START.
Fix
Catch 21610, record the contact as opted out, and stop retrying. Only the recipient can lift it by texting START.
Apply
try { await client.messages.create({ from, to, body }); } catch (err) { if (err.code === 21610) await markOptedOut(to); else throw err; }
Affected
Twilio Programmable Messaging default opt-out handling, checked October 2026
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun