The Opt Out Event

The "opt out" event is a webhook event that is triggered whenever any of your textwords experiences an opt out. This event will happen in any of the following circumstances...

  • A contact is manually opted out from the dashboard.
  • Someone texts STOP to your shortcode.

NOTE: there is a difference between deleting a contact and opting them out in your dashboard. The opt out webhook event is only triggered if you are opting a contact out of a list.

Example

Below is an example of the JSON data you'd receive from the "Opt Out" event.


                    {
                       "Event":"OptOut",
                       "Timestamp":"2014-08-14 19:25:53",
                       "attemptNumber":1,
                       "Subscriber":{
                          "SubscriberId":"658445349",
                          "TextwordId":"9454817",
                          "Number":"+15555555555",
                          "City":"Jamestown",
                          "State":"NY",
                          "Zip":"14701",
                          "Country":"US",
                          "FirstName":"John",
                          "LastName":"Smith",
                          "Birthdate":"1985-09-15 00:00:00",
                          "Email":"webhooks@slicktext.com",
                          "DateSubscribed":"2014-08-14 19:17:46"
                          "DateOptedOut":"2014-08-14 19:25:53",
                          "OptInSource": "Text to Join",
                          "FavoriteFood": "Pizza"
                       },
                       "Textword":{
                          "TextwordId":"9454817",
                          "Textword":"slicktext",
                          "Description": "This is a demo textword",
                          "AutoReply":"Thanks for joining the SlickText text alerts list! Use co....
                       }
                    }