SMS Integration with Twilio
Last updated
Last updated
Your IoT device sends an outgoing message
The message is captured by the webhook (defined in Monogoto integration)
The webhook is defined in Twilio as a service with a function that triggers SMS send to any device
Twilio Functions is a serverless environment that allows you to write code to process incoming webhooks without hosting your own server.
Log in to your Twilio account.
Upgrade your account (to send SMS to private numbers - it's mandatory)
Navigate to Functions & Assets > Services.
Create a new service and add new Function within it.
5. Add function (press on add and edit the name of the path)
It will generate a default code. Overwrite it with the following code for the Function:
Destination MSISDN:
From MSISDN (must be a Twillio number - look in your account for your number) - you can find it in the account dashboard.
Make sure that your function is globally available - tap on the lock icon and modify from protected to global.
Save & Deploy the Function and note the generated URL.
https://console.twilio.com/us1/develop/sms/settings/geo-permissions
Press on "copy URL" to get your Twilio URL - should be like: https://sendsms-6806.twil.io/sendSMS
Use this webhook URL in Monogoto hub webhook integration
View all messages sent in Twilio