sms - Twilio API - How to Opt-Out a phone number -


when new user signs up, we're going give them checkbox can opt-in or opt-out of receiving sms messages.

i can track on own making sure our application doesn't send texts way, i'm wondering if makes more sense me add them opted out on twilio?

i'm still playing around idea, regardless i'm not seeing api endpoints (https://www.twilio.com/docs/api) opt-in or opt-out.

questions:

  • how opt-out phone number if choose go route?
  • is better manage list on end, or use twilio (if it's possible), or redundant , manage own list in addition twilio enforcing it?

twilio developer evangelist here.

there no api developers opt users' phone numbers in or out of messages you should maintain opt out list yourself within own application described @ start of question.

twilio make possible users opt out of messages number (or messaging service) using industry standard opt out words (stop, stopall, unsubscribe, cancel, end, , quit). when user sends 1 of words on own number twilio cease sending messages person. receive message webhook can watch keywords , update application's opt out list too.

i recommend if want users opt out of messages them part of system rather via stop mechanic. way, re-enable messages can through system , not have send opt in message (start, yes , unstop) open messages again.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -