The Message Sent Event

The "message sent" event is a webhook event that is triggered whenever an outgoing SMS blast is sent from your account. This event will happen in any of the following circumstances...

  • A standard outgoing text campaign is sent.
  • A standard outgoing text campaign is sent after being scheduled.
  • A single text message is sent to a user from the dashboard.

NOTE: This does not include auto replies. Auto replies are only sent when a new person subscribes. Those event details can be captured in the "New Subscriber" event.

Example

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


                    {
                       "Event":"MessageSent",
                       "Timestamp":"2014-08-14 11:30:00",
                       "attemptNumber":1,
                       "Message":{
                          "MessageId":"5294334532",
                          "DateScheduled":2014-08-14 11:30:00,
                          "DateSent":"2014-08-14 11:30:00",
                          "DateCreated":"2014-08-11 17:43:12",
                          "TextwordId":"9454817",
                          "SegmentId":false,
                          "SubscriberId":false,
                          "CampaignName":"Test campaign",
                          "Body":"This is a test text message campaign",
                          "MediaUrl":"http://www.slicktext.com/images/hero_phone.jpg",
                          "SubscriberCount":1
                       },
                       "Textword":{
                          "TextwordId":"9454817",
                          "Textword":"slicktext",
                          "AutoReply":"Thanks for joining the SlickText text alerts list! Use co....
                       }
                    }