Setting Up Sending SMS With The Twilio API

Hi All,

Heres a quick guide for anyone looking to set up Twilio SMS as part of a booking system. I’ve just completed a booking system that works like a dream so thought I’d post here to help others who are in the same situation.

You’ll need to be registered with Twilio:
https://www.twilio.com/try-twilio

Once done, you’ll get access to your console:
https://console.twilio.com/

To set up your Wappler API, you’ll need the following from your console settings:
Account SID
Auth Token
Twilio Phone Number

Once you have that its all straightforward. In my case, the phone number to send to comes from a booking form, the number is then formatted to remove the leading zero then country code is added - +44 in my case i the UK. I also formatted the message body in a ‘set value’ to neaten up the API ‘Input Data’ editing fields which are way too small.

The SID is then used in the Twilio URL and also used as a username, the password field is the Auth Token.

The ‘From’ number in the API is the Twilio phone number on the console.

Once done it should all work for you, heres how it looks:

Screenshot 2023-10-18 092155

6 Likes