# Mautic Integration with Twilio to send message to Whatsapp

**URL:** <https://forum.mautic.org/t/mautic-integration-with-twilio-to-send-message-to-whatsapp/14596>\
**Category:** Product Support\
**Created:** [June 1, 2020, 11:30pm UTC](https://forum.mautic.org/t/mautic-integration-with-twilio-to-send-message-to-whatsapp/14596 "2020-06-01T23:30:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [June 4, 2020, 8:59am UTC](https://forum.mautic.org/t/mautic-integration-with-twilio-to-send-message-to-whatsapp/14596/2 "2020-06-04T08:59:24Z")

</div>

hi [jpgiron](https://forum.mautic.org/u/jpgiron)

The Twilio integration with Mautic works only for SMS. if you want to send whatsapp messages through mautic to Twilio you need a different approach. You should use a webhook action in a campaign that send the the payload to a Twilio endpoint that is intended to handle messages for WhatsApp

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/07700149b4e05f0e644c75f816f86a1f47f97768.png)

the paramters are as follows:

Twilio endpoint for whatsapp messaging:  
[https://api.twilio.com/2010-04-01/Accounts/xxxxxxxxxxxxxxx/Messages.json](https://api.twilio.com/2010-04-01/Accounts/xxxxxxxxxxxxxxx/Messages.json)

(xxxxxxxxxxxxxxx is your Twilio client id - same one you use in Mautic)  
Method is POST  
**Headers:**  
autorization: basic twilioclientid:twilioclientsecret (twilio credentials (along with “:”) should be encoded in base64. you can do it here [https://www.base64encode.org](https://www.base64encode.org))  
content-type: application/x-www-form-urlencoded

**Data**  
From: your number (whatsapp+number)  
To: number of recepient  
Body: content of message

all Data fields support mautic tokens for fields (as you can see from screenshot)

---

_[View the full topic](https://forum.mautic.org/t/mautic-integration-with-twilio-to-send-message-to-whatsapp/14596)._
