Skip to main content

Twilio Connector

Twilio Send SMS messages through Twilio

Connections

Twilio API Key Connection

Authenticate requests to Twilio using an API key

This component authenticates with Twilio using API key/secret pairs that can be generated from Twilio's app console. To create a Twilio API key and secret pair:

  • Go to the Twilio console
  • On the top-right of the screen click Account -> API Keys & Tokens
  • Select Create API Key
  • Give your key a name and select Standard for Key type
  • Take note of the API key's SID and Secret - you will enter those in a moment

Now, when you create an integration that uses Twilio, a "Twilio API Key Connection" will automatically be generated. Enter your API Key SID (starts with "SK..."), and its Secret. Go back to your Twilio console to find your Account SID (starts with "AC..."), and enter that as well.

InputCommentsDefault
Account SIDYour account SID (starts with AC)
API Key SIDAn API Key SID (starts with SK)
API Key SecretThe API secret that was generated when an API key was created

Twilio Auth Token Connection

Authenticate requests using account SID and auth token

When you create a Twilio account, an Account String Identifier (Account SID) and Auth Token are generated. You can use the account SID and auth token to authenticate with Twilio and to send SMS messages.

Consider API Keys instead

For security reasons, we recommend using an API Key Connection instead. API keys can be revoked and auth tokens generated using API keys are short-lived.

InputCommentsDefault
Account SIDYour account SID (starts with AC)
Auth TokenCan be found on https://console.twilio.com/

Triggers

Webhook

Receive and validate webhook requests from Twilio for webhooks you configure.

Actions

Get SMS

Get an SMS message

InputCommentsDefault
Message SID
Connection

List SMS messages

Lists SMS messages

InputCommentsDefault
Connection

Raw Request

Send raw HTTP request to Twilio

InputCommentsDefault
Connection
URLInput the path only (/Accounts/$TWILIO_ACCOUNT_SID/Messages.json), The base URL is already included (https://api.twilio.com/2010-04-01). For example, to connect to https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json, only /Accounts/$TWILIO_ACCOUNT_SID/Messages.json is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Send SMS

Send an SMS message

InputCommentsDefault
ToThe SMS recipient's phone number.
FromThe SMS sender's phone number.
MessageThe message body of the SMS message.
Connection