Twilio
Send texts and phone sign-in codes from your site with your own Twilio account. Each site gets its own key, so your main Twilio token never goes into a site. Recent texts, your numbers and how phone codes are doing show in the builder.
Connect
Twilio connects with your Account SID and Auth Token.
- Open Settings > Connectors, click Twilio, then Connect.
- The Twilio console opens. Under Account Info, copy the Auth Token, then the Account SID.
- Each is picked up when you come back to WebTwizz, then checked with Twilio and connected. You can also paste them into the fields yourself.
WebTwizz makes a separate API key in your Twilio account for each site that uses it. Your Auth Token stays with WebTwizz.
What you see
- Status, when something needs you. Each one opens the Twilio page about it:
- Trial account: texts and phone codes only reach verified numbers until you upgrade in Twilio.
- Balance is low: texts and phone codes stop if it runs out.
- Possible code fraud: most phone codes sent to a country were never used. Bots ask for codes to run up your bill, so turn off countries you don't serve in Twilio.
- US texts need carrier registration or US texts need verification: US carriers only deliver texts from numbers registered or verified with them.
- Texts to India need registration: Indian carriers only deliver texts from a sender name and message templates registered with them.
- Balance: your Balance and what you've Spent this month. Billing opens Twilio.
- Messages: Texts sent, 7 days and how many Failed. All messages opens Twilio.
- Test text: click Send a test text, then Send, to text your own number verified in Twilio from the site's sender. Twilio bills it like any other text. Until the site has a sender and you've verified your number in Twilio, it says what to do first.
- Recent texts, with whether they arrived or why not. Numbers show by their last 4 digits. Click a text to see what it said, its Status, Why it didn't arrive, when it was Sent and its Cost. About this error or Message logs opens Twilio.
- Failed only shows just the texts that didn't arrive, and Show more loads older ones.
- Numbers: each number, whether it's local or toll-free, what it can do, and which one Sends this project's texts. US numbers show whether carriers take their texts, like Registered, Not registered, Verified or In review. Each opens in Twilio, and All numbers opens the list.
- Phone codes: Codes sent, 30 days, how many were Confirmed and the Confirm rate, then By country, once phone codes are on. Open in Twilio opens Twilio.
- Settings:
- Phone codes: texts sign-in codes to visitors with Twilio Verify, with no number of your own needed. Pick one you have, New, just for this site, or Off. A new one asks first, confirmed with Set up, and the text names your site.
- Send texts from: one of your Twilio numbers, or a group of them. None yet until you have one.
- At the top, next to the name, Phone codes and Numbers open Twilio.
What the AI can do
- Build texts and phone sign-in codes into your site. They're sent from your site's server, never the browser.
- Read recent texts with their delivery status and error codes, up to 30 days back
- Read your numbers and their US registration status
- Turn on phone codes for this site. It asks first.
- Text a test to a number verified in your Twilio account, like your own. It asks first.
- Buy a number that can text, billed monthly by Twilio. It asks first. If the site has no sender yet, the new number becomes it.
Secrets
TWILIO_ACCOUNT_SID: your Twilio accountTWILIO_API_KEY_SIDandTWILIO_API_KEY_SECRET: the key made for this site, server-side onlyTWILIO_VERIFY_SERVICE_SID: the phone codes service, when it's onTWILIO_MESSAGING_SERVICE_SIDorTWILIO_PHONE_NUMBER: what the site sends texts from, when you pick one
Good to know
- Replace key takes a new Auth Token for the same account. Your sites keep their own keys, so nothing on them changes.
- A site you duplicate gets its own key, so removing Twilio from the original leaves the copy working.
- If your site receives texts, add your Auth Token as
TWILIO_AUTH_TOKENin Secrets, so it can check they really come from Twilio. - Removing Twilio from a project deletes the key made for it and takes its secrets out. Your Twilio account, numbers and other keys are untouched.