Send SMS Using Twilio Connect

April 4, 2025

          

Twilio allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs

Anypoint Connector for Twilio (Twilio Connector) is a cloud communications infrastructure as a service (IaaS).The Twilio platform serves APIs for text messaging, VoIP, and voice calls. Twilio Connector provides connectivity to the Twilio text messaging API

This connector provides an API for sending and receiving text messages

Prerequisites:

You should have account for Twilio

Module should be added in Anypoint Studio(Please visit to add module from exchange)

Operations Supported by Twilio Connector In Mulesoft

Send Message

Get Message

Get Media

Get Media List

Get Message List

Redact Message

Delete Media

Delete Message

Create twilio Account using below url:

https://twilio.com/try-twilio

 

Mail has been sent to registered email, Kindly verify the account

Note the Account SID and Auth Token for further use for connector configuration

Click on manage numbers and get your first twilio phone number to send message/phone calls

 

 

Congratulations message will be shown

Create a mule application in studio and configure the listener to trigger the request

Create a transform message(payload) to send message from Twilio connector

Note: From Number and To Number should be in E.164 Format

E.164 Format: E.164 is the international telephone numbering plan that ensures each device on the PSTN has globally unique number.This number allows phone calls and text messages can be correctly routed to individual phones in different countries. E.164 numbers are formatted [+] [country code] [subscriber number including area code] and can have a maximum of fifteen digits

Drag and drop Send message from mule palette and configure the username(AccountSID) and password(AuthToken)

 

 

 

 

 

 

Deploy the application and test from postman

 

 

 

Message Received on Phone:

 

conclusion:

Integrating Twilio with MuleSoft enables businesses to easily send and receive SMS, voice, and other messaging services within their applications. The MuleSoft Twilio connector simplifies API interactions, reducing complexity and enhancing communication workflows. This integration empowers businesses to offer personalized, real-time customer experiences effortlessly.

 


 


Share this blog

Never Miss A Single Update

Cikkert Technology

Salesforce PartnerMuleSoft Partner
Cikkert Technology is an IT services consultancy helping organizations leverage Integration Technology to accelerate business outcomes.
Find Us

Center Point, 6th,7th & 8th Floor, Centre Point, 2/4, Mount Pollamallee High Road, Manapakkam,
Porur, Chennai, Tamil Nadu 600089
info@cikkert.com