Twilio SMS API integration with Mulesoft

Introduction

In this article , we will demonstrate how to use Twilio API for sending SMS using Mulesoft. 

Architecture Diagram: 

Prerequisite: 

1, Need to have an active account in Twilio.For new Account, signup here

2. In Anypoint studio, add Twilio connector module from exchange

Implementation

  1. Preparing payload for sending SMS through Twilio API  

Here, we need to pass Twilio Account Mobile number to “From” key and pass recipient mobile number to “To” key. The content of the message can be passed to “Body” key. 

  1. Configuring Twilio Create Message connector 

Here, In Username, we need to give Account Sid value which will be in Twilio Account, and in Password we need to give authentication token of Twilio Account. 

  1. Checking the status of message sent 

Once we have sent the payload to Twilio, it will return the status of message Sample response from the Twilio: 

Conclusion

Message was successfully sent to Recipients using the Twilio API. 

Reference Link:  

For additional information, please check below: 

About MST

At MST Solutions our cornerstone is to adapt, engage and create solutions which guarantee the success of our clients. The talent of our team and experiences in varied business verticals gives us an advantage over other competitors.

Recent Articles

Google BigQuery Connector

The Google BigQuery connector allows users to perform different operations on the Google BigQuery instance from Anypoint Platform/Anypoint Studio. BigQuery is Google’s fully managed, petabyte scale, low cost analytics data warehouse. The connector exposes Google BigQuery operations by executing their API calls as per configuration. It supports various operations related to Dataset, Table, Job, etc.

Read Article »

Work with us.

Our people aren’t just employees, they are key to the success of our business. We recognize the strengths of each individual and allow them time and resources to further develop those skills, crafting a culture of leaders who are passionate about where they are going within our organization.