Skip to content

Twilio

Twilio is a cloud communications platform that enables developers to integrate messaging, voice, and video capabilities into their applications.

Categories: communication

Type: twilio/v1


Connections

Version: 1

Basic Auth

Properties

NameLabelTypeControl TypeDescriptionRequired
accountSidAccount SIDSTRINGTEXTtrue
authTokenAuth TokenSTRINGTEXTtrue

Actions

Send SMS

Name: sendSMS

Send a new SMS message

Properties

NameLabelTypeControl TypeDescriptionRequired
accountSidAccount SIDSTRINGTEXTThe SID of the Account creating the Message resource.false
toToSTRINGPHONEThe recipient’s phone number in E.164 format (for SMS/MMS) or channel address, e.g. whatsapp:+15552229999.true
sourceSourceSTRINGSELECTtrue
fromFromSTRINGPHONEThe sender’s Twilio phone number (in E.164 format), alphanumeric sender ID, Wireless SIM, short code, or channel address (e.g., whatsapp:+15554449999). The value of the from parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using messaging_service_sid, this parameter can be empty (Twilio assigns a from value from the Messaging Service’s Sender Pool) or you can provide a specific sender from your Sender Pool.true
messagingServiceSidMessaging Service SIDSTRINGTEXTThe SID of the Messaging Service you want to associate with the Message. When this parameter is provided and the from parameter is omitted, Twilio selects the optimal sender from the Messaging Service’s Sender Pool. You may also provide a from parameter if you want to use a specific Sender from the Sender Pool.true
contentContentSTRINGSELECTfalse
bodyBodySTRINGTEXTThe text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the body contains more than 160 GSM-7 characters (or 70 UCS-2 characters), the message is segmented and charged accordingly. For long body text, consider using the send_as_mms parameter.true
mediaUrlMedia URL[STRING]ARRAY_BUILDERThe URL of media to include in the Message content. jpeg, jpg, gif, and png file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (jpeg, jpg, png, gif) and 500 KB for other types of accepted media. To send more than one image in the message, provide multiple media_url parameters in the POST request. You can include up to ten media_url parameters per message. International and carrier limits apply.false
statusCallbackStatus CallbackSTRINGURLThe URL of the endpoint to which Twilio sends Message status callback requests. URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the messaging_service_sid, Twilio uses this URL instead of the Status Callback URL of the Messaging Service.false
applicationSidApplication SIDSTRINGTEXTThe SID of the associated TwiML Application. If this parameter is provided, the status_callback parameter of this request is ignored; Message status callback requests are sent to the TwiML App’s message_status_callback URL.false
maxPriceMaximum PriceNUMBERNUMBERThe maximum price in US dollars that you are willing to pay for this Message’s delivery. When the max_price parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds max_price, the message is not sent and the Message status is failed.false
provideFeedbackProvide FeedbackBOOLEANSELECTBoolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the Message Feedback subresource). Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the Message Feedback subresource).false
attemptAttemptINTEGERINTEGERTotal number of attempts made (including this request) to send the message regardless of the provider used.false
validityPeriodValidity PeriodINTEGERINTEGERThe maximum length in seconds that the Message can remain in Twilio’s outgoing message queue. If a queued Message exceeds the validity_period, the Message is not sent. A validity_period greater than 5 is recommended.false
forceDeliveryForce DeliveryBOOLEANSELECTReservedfalse
contentRetentionContent RetentionSTRINGSELECTDetermines if the message content can be stored or redacted based on privacy settings.false
addressRetentionAddress RetentionSTRINGSELECTDetermines if the address can be stored or obfuscated based on privacy settings.false
smartEncodedSmart EncodedBOOLEANSELECTWhether to detect Unicode characters that have a similar GSM-7 character and replace them.false
persistentActionPersistent Action[STRING]ARRAY_BUILDERRich actions for non-SMS/MMS channels. Used for sending location in WhatsApp messages.false
shortenUrlsShorten URLsBOOLEANSELECTFor Messaging Services with Link Shortening configured only: A Boolean indicating whether or not Twilio should shorten links in the body of the Message.false
scheduleTypeSchedule TypeSTRINGSELECTFor Messaging Services only: Include this parameter with a value of fixed in conjuction with the send_time parameter in order to schedule a Message.false
sendAtSend At{DATE_TIME(dateTime), STRING(zoneId)}OBJECT_BUILDERThe time that Twilio will send the message. Must be in ISO 8601 format.false
sendAsMmsSend as MMSBOOLEANSELECTIf set to true, Twilio delivers the message as a single MMS message, regardless of the presence of media.false
contentVariablesContent VariablesSTRINGTEXTFor Content Editor/API only: Key-value pairs of Template variables and their substitution values. content_sid parameter must also be provided. If values are not defined in the content_variables parameter, the Template’s default placeholder values are used.false
riskCheckRisk CheckSTRINGSELECTFor SMS pumping protection feature only: Include this parameter with a value of disable to skip any kind of risk check on the respective message request.false
contentSidContent SIDSTRINGTEXTFor Content Editor/API only: The SID of the Content Template to be used with the Message, e.g., HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio’s response when creating the Template or by fetching your Templates.false

Output

Type: OBJECT

Properties

NameTypeControl Type
bodySTRINGTEXT
numSegmentsSTRINGTEXT
directionSTRINGTEXT
from{STRING(rawNumber)}OBJECT_BUILDER
toSTRINGTEXT
dateUpdated{DATE_TIME(dateTime), STRING(zoneId)}OBJECT_BUILDER
priceSTRINGTEXT
errorMessageSTRINGTEXT
uriSTRINGTEXT
accountSidSTRINGTEXT
numMediaSTRINGTEXT
statusSTRINGTEXT
messagingServiceSidSTRINGTEXT
sidSTRINGTEXT
dateSent{DATE_TIME(dateTime), STRING(zoneId)}OBJECT_BUILDER
dateCreated{DATE_TIME(dateTime), STRING(zoneId)}OBJECT_BUILDER
errorCodeINTEGERINTEGER
currency{STRING(currencyCode), INTEGER(defaultFractionDigits), INTEGER(numericCode)}OBJECT_BUILDER
apiVersionSTRINGTEXT
subresourceUris{}OBJECT_BUILDER