English
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-Signatureheader, HMAC-SHA1 of the raw body - Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- Open the Twilio console: the “Account SID” and “Auth Token” are on the home page (Account Info).
- To limit rights, create an API key instead (Account → API keys) and use its SID and secret.
- Paste the identifier and the secret below.
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
Account SID or API key SID (accountSid) | Text | Yes | |
Auth Token or API key secret (authToken) | Secret — never shown again | Yes | |
Account Auth Token (incoming SMS) (webhookAuthToken) | Secret — never shown again | No | Only 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
- Open Connections. In the Third-party services section, find the Twilio card and click Connect.
- Type the identifier and paste the secret, then click Create connection.
- Click Configure, then Test connection: the test calls
GET /Accounts.json.
Calls used
| Action | Twilio call |
|---|---|
| Send an SMS | POST /Accounts/{sid}/Messages.json (multipart: To, From or MessagingServiceSid, Body) |
| Track a message | GET /Accounts/{sid}/Messages/{MessageSid}.json |
| Lists | GET /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.
| Event | Label |
|---|
Nodes that use this connection
- Twilio — SMS received —
trigger.twilio - Twilio —
twilio.api