DocsTwilio SMSTwilio
Setting up Twilio
Set it up in test mode first where Twilio offers one, and switch to live when a test has worked. Allow an hour, plus any time that Twilio needs to approve your account.
2 min read
What you need first
- A Twilio account (twilio.com) and a Twilio phone number, or a Messaging Service, allowed to send to the countries of your customers.
Your keys and where to find them
| Field | Where it comes from |
|---|---|
| Account SID and Auth token | In the Twilio Console, the home page shows Account Info with the Account SID and the Auth token (click Show). For Test, use the test credentials under Account > API keys & tokens. |
| Messaging Service SID (optional) | In the Twilio Console, Messaging > Services. Use it when you send from a pool of numbers; leave it empty to send from one number. |
| Delivery reports | Paste the webhook address shown on the gateway as the status callback of your Twilio number, or of your Messaging Service. |


Set it up
- Get the Twilio SMS add-on and switch it on under Settings›Apps & Features.
- Open Settings›SMS gateways and pick Twilio SMS in the list of gateways.
- Choose Test, enter the keys from your Twilio SMS account under Test and click Save.
- Click Test connection. A green line means Twilio SMS accepted the saved keys.
- To see delivery reports and STOP replies, turn on Delivery reports and replies, click Save, and copy the webhook address shown into your Twilio SMS account (the table above says where).
- Click Use as default if every app should send through Twilio SMS.
- When the test messages look right, fill the Live set, choose Live and click Save.
Test and live
Every connection keeps two sets of keys: one for Test and one for Live. You can fill both at any time; the state decides which one is used.
In Test, Twilio SMS does not deliver to real phones (or only to the numbers you verified with Twilio SMS) and uses no paid credit.
Live is a state: choose Live and click Save. Until the Live set is filled it is refused with "Enter the live credentials before switching Twilio SMS to Live." From then on messages reach real phones and are charged. You can switch back to Test or Inactive at any time; nothing is deleted.