Programmable Messaging | Oct. 17, 2024

Inbound Messaging Event Streams Now Include Additional Data

Starting on October 17th, we updated the Incoming Messaging Event Streams schema by adding more parameters. Incoming messages now include information about the Opt-Out Type and the list of the recipients for Group MMS. 

To avoid unexpected changes in event formats, Event Streams supports multiple schema versions per event type. To use this new schema, log into the Console, select the latest schema version for inbound messages, and configure your event type destination sinks.

Examples of the new schema with additional data (additions are highlighted):   

"data": {
           "accountSid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "body": "STOP",
            "eventName": "com.twilio.messaging.inbound-message.received",
            "from": "+14015551212",
            "fromCity": "SAN FRANCISCO",
            "fromCountry": "US",
            "fromState": "CA",
            "fromZip": "94103",
            "messageSid": "SMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "numMedia": 0,
            "numSegments": 1,
            "optOutType": "STOP",
            "recipients": [],
            "timestamp": "2024-10-14T08:55:14.800Z",
            "to": "+15558675309",
            "toCity": "SAN FRANCISCO",
            "toCountry": "US",
            "toState": "CA",
            "toZip": "94103"
        }
"data": {
            "accountSid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "body": "Ahoy!",
            "eventName": "com.twilio.messaging.inbound-message.received",
            "from": "+14015551212",
            "fromCity": "SAN FRANCISCO",
            "fromCountry": "US",
            "fromState": "CA",
            "fromZip": "94103",
            "messageSid": "SMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "numMedia": 0,
            "numSegments": 1,
            "recipients": ["+15558675309", "+14155555555"],
            "timestamp": "2024-10-14T08:55:14.800Z",
            "to": "+1555867XXXX",
            "toCity": "SAN FRANCISCO",
            "toCountry": "US",
            "toState": "CA",
            "toZip": "94103"
        }
Messaging