Twilio

tw

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

Twilio Message Status

Trigger workflow when a Twilio message status changes (sent, delivered, failed)

Configuration

ParameterTypeRequiredDescription
accountSidstringYesYour Twilio Account SID from the Twilio Console
authTokenstringYesYour Twilio Auth Token, used to verify the X-Twilio-Signature header

Output

ParameterTypeDescription
messageSidstringUnique 34-character identifier for the message
accountSidstringTwilio Account SID
messagingServiceSidstringMessaging Service SID, if the message was sent through one
fromstringPhone number or channel address that sent the message (E.164 format)
tostringPhone number or channel address of the recipient (E.164 format)
bodystringText body of the message (up to 1600 characters)
numMediastringNumber of media items attached to the message
numSegmentsstringNumber of segments that make up the message
mediajsonArray of attached media as { url, contentType } objects (MMS)
smsStatusstringSMS status (e.g., received, sent, delivered, undelivered, failed)
messageStatusstringMessage status for status callbacks (sent, delivered, undelivered, failed)
errorCodestringTwilio error code, present when the status is failed or undelivered
apiVersionstringTwilio API version used to process the message
fromCitystringCity of the sender, when available
fromStatestringState/province of the sender, when available
fromZipstringZip/postal code of the sender, when available
fromCountrystringCountry of the sender, when available
toCitystringCity of the recipient, when available
toStatestringState/province of the recipient, when available
toZipstringZip/postal code of the recipient, when available
toCountrystringCountry of the recipient, when available
rawstringComplete raw webhook payload from Twilio as a JSON string

Twilio SMS Received

Trigger workflow when an inbound SMS or MMS message is received via Twilio

Configuration

ParameterTypeRequiredDescription
accountSidstringYesYour Twilio Account SID from the Twilio Console
authTokenstringYesYour Twilio Auth Token, used to verify the X-Twilio-Signature header

Output

ParameterTypeDescription
messageSidstringUnique 34-character identifier for the message
accountSidstringTwilio Account SID
messagingServiceSidstringMessaging Service SID, if the message was sent through one
fromstringPhone number or channel address that sent the message (E.164 format)
tostringPhone number or channel address of the recipient (E.164 format)
bodystringText body of the message (up to 1600 characters)
numMediastringNumber of media items attached to the message
numSegmentsstringNumber of segments that make up the message
mediajsonArray of attached media as { url, contentType } objects (MMS)
smsStatusstringSMS status (e.g., received, sent, delivered, undelivered, failed)
messageStatusstringMessage status for status callbacks (sent, delivered, undelivered, failed)
errorCodestringTwilio error code, present when the status is failed or undelivered
apiVersionstringTwilio API version used to process the message
fromCitystringCity of the sender, when available
fromStatestringState/province of the sender, when available
fromZipstringZip/postal code of the sender, when available
fromCountrystringCountry of the sender, when available
toCitystringCity of the recipient, when available
toStatestringState/province of the recipient, when available
toZipstringZip/postal code of the recipient, when available
toCountrystringCountry of the recipient, when available
rawstringComplete raw webhook payload from Twilio as a JSON string

On this page