- 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