Twilio

Twilio

Twilio enables apps to send and receive global SMS, MMS and IP messages.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure China regions
Flow Standard All Flow regions
PowerApps Standard All PowerApps regions

Throttling Limits

Name Calls Renewal Period
API calls per connection 1200 60 seconds

Creating a connection

To connect your account, you will need the following information:

Twilio Account Id
securestring
Twilio Account Id
Twilio Access Token
securestring
Twilio Access Token

Actions

Get Message

This operation returns a single message specified by the provided Message ID.

Required Parameters

Message SID
string
Unique SID of the message.

Returns

Message
Message

Proprties of a single message.

List Messages

Returns a list of messages associated with your account.

Optional Parameters

To Phone Number
string
Only show messages to this phone number.
From Phone Number
string
Only show messages from this phone number.
Date Sent
date
Only show messages sent on this date (in GMT format), given as YYYY-MM-DD. Example: DateSent=2009-07-06. You can also specify inequality, such as DateSent<=YYYY-MM-DD for messages that were sent on or before midnight on a date, and DateSent>=YYYY-MM-DD for messages sent on or after midnight on a date.
Limit
integer
How many resources to return in each list page. Default is 50.
Page
integer
Page number. Default is 0.

Returns

Message List
MessageList

List of one or more messages.

Send Text Message (SMS)

This operation is used to send a new message to a mobile number.

Required Parameters

From Phone Number
string
A Twilio phone number (in E.164 format) or alphanumeric sender ID enabled for the type of message you wish to send.
To Phone Number
string
The destination phone number. Format with a '+' and country code e.g., +16175551212 (E.164 format).
Text
string
The text of the message you want to send, limited to 1600 characters.

Optional Parameters

Media Url
uri
Status Call back
uri
A URL that Twilio will POST to each time your message status changes.
Messaging Service Sid
string
Unique id of the Messaging Service.
Application SID
string
SID of Twilio Application which is configured with the required Message status call back.
Max Price
string
The total maximum price limit for the message.
Validity Period
string
The number of seconds that the message can remain in a Twilio queue.

Returns

Message
Message

Proprties of a single message.

Definitions

Message

Proprties of a single message.

API
string
Version of the API used to send the message.
Account Sid
string
SID of the account associated with the sent message.
Created Date-Time
string
yyyy-MM-ddTHH:mm:ss.fffZ (UTC format)
Direction
string
Direction associated with the sent message.
Error Codes
string
Error codes associated with the sent message, if any.
Error Messages
string
Error messages associated with the sent message, if any.
From Number
phone
Phone number from which the message was sent.
Media Count
string
Number of media files associated with the sent message.
Messaging Service Sid
string
Unique id of the messaging Service.
Price
string
Cost of the sent message.
SID
string
SID of the sent message.
Segment Count
string
Number of segments the message was divided into.
Sent Date-Time
string
yyyy-MM-ddTHH:mm:ss.fffZ (UTC format)
Status
string
Sent status of the message.
Subresource URIs
object
Relative URIs for any subresources.
Text
string
Body of the message.
To Number
phone
Phone number to which the message was sent.
URI
uri
Relative URI for this resource.
Unit
string
Price unit used to evaluate the cost of the message.
Updated Date-Time
string
yyyy-MM-ddTHH:mm:ss.fffZ (UTC format)

MessageList

List of one or more messages.

First Page URI
uri
Relative URI for the first page.
Limit
integer
Page size of the response.
Message Count
integer
Total number of messages.
Next Page URI
uri
Relative URI for the next page.
Page
integer
Page number of the respone.
Page Count
integer
Total number of pages in the response.
Previous Page URI
uri
Relative URI for the previous page.
URI
uri
Relative URI for this list.
messages
array of Message
List of one or more messages.