Skip to content

Twilio ​

Send an SMS (or a WhatsApp message through Twilio) from your Twilio numbers, and track its delivery.

A Twilio connection lets the Twilio node send an SMS — or a WhatsApp message through Twilio — from one of the account’s numbers, and track its delivery.

The connection holds an identifier (Account SID AC…, or API key SID SK…) and its secret (Auth Token, or the key’s secret), sent with HTTP Basic authentication. The secret is encrypted at rest.

At a glance ​

  • Identifier: twilio
  • Family: Service
  • Set up by: A member (personal) or an administrator (shared with the organisation)
  • Authentication: API key or token
  • Credential type: service:twilio
  • Official API documentation: https://www.twilio.com/docs/messaging/api/message-resource
  • API base URL: https://api.twilio.com/2010-04-01
  • Rate limit applied by Loop & Roll: 10 requests per second and per connection; up to 3 attempts on a 429 or a 5xx
  • Webhook signature: X-Twilio-Signature header, HMAC-SHA1 of the raw body
  • Connection test: Yes

Step by step ​

The same steps are shown in the connection form of the app.

  1. Open the Twilio console: the “Account SID” and “Auth Token” are on the home page (Account Info).
  2. To limit rights, create an API key instead (Account → API keys) and use its SID and secret.
  3. Paste the identifier and the secret below.

Connection fields ​

FieldKindRequiredNotes
Account SID or API key SID (accountSid)TextYes
Auth Token or API key secret (authToken)Secret — never shown againYes
Account Auth Token (incoming SMS) (webhookAuthToken)Secret — never shown againNoOnly for the “SMS received” trigger: Twilio signs its calls with the account Auth Token, even when you send with an API key.

Before you start ​

  • An API key limits rights better than an Auth Token: create one under Account → API keys.
  • Sending to a given country may require a geographic permission in the Twilio console.

Add the connection ​

  1. Open Connections. In the Third-party services section, find the Twilio card and click Connect.
  2. Type the identifier and paste the secret, then click Create connection.
  3. Click Configure, then Test connection: the test calls GET /Accounts.json.

Calls used ​

ActionTwilio call
Send an SMSPOST /Accounts/{sid}/Messages.json (multipart: To, From or MessagingServiceSid, Body)
Track a messageGET /Accounts/{sid}/Messages/{MessageSid}.json
ListsGET /Accounts.json, GET /Accounts/{sid}/IncomingPhoneNumbers.json

Receive SMS (trigger) ​

The Twilio — SMS received trigger receives messages on the workflow’s URL. Enter the account Auth Token in the connection (Twilio signs with it, even if you send with an API key), then paste the workflow URL in the number’s A message comes in setting. Every call carries X-Twilio-Signature, checked against the URL and the parameters received; the server answers with an empty TwiML.

Webhook events ​

The events offered by the trigger. An event the provider adds later is still accepted when no event is ticked.

EventLabel

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.