# SMS API Integration for a button click event

**URL:** <https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810>\
**Category:** Questions about Thunkable X\
**Created:** [December 27, 2020, 4:07pm UTC](https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810 "2020-12-27T16:07:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitesunsystemsoluti](https://avatars.discourse-cdn.com/v4/letter/w/3ab097/32.png) [@whitesunsystemsoluti](https://community.thunkable.com/u/whitesunsystemsoluti)\
**Post date:** [December 27, 2020, 4:07pm UTC](https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810/1 "2020-12-27T16:07:49Z")

</div>

how to integrate sms api in thunkable in a button click event  
following is the url

url: [http://sms.whitesun.co.in:6005/api/v2/SendSMS?ApiKey=xxxxx&ClientId=xxxx&SenderId=WHTSUN&Message=Testing&MobileNumbers=xxxxx](http://sms.whitesun.co.in:6005/api/v2/SendSMS?ApiKey=xxxxx&ClientId=xxxx&SenderId=WHTSUN&Message=Testing&MobileNumbers=xxxxx)

please help me out in this regard

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d0c83c33349de4d4fd7dc85ef456d0e2bd1f6d60.png)

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 27, 2020, 6:19pm UTC](https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810/2 "2020-12-27T18:19:19Z")

</div>

@whitesunsystemsoluti

Thank you for sharing your blocks, that is VERY HELPFUL!!!

Every Web API (REST API) is different. So when working with a new API, I recommend you capture the results like this so you can see (and share) all 3 of the values returned by the Web API block

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/92ac42085c9d7aaf0b4f4fa83fe5dcb344e3c51e.png)

One thing I can see that looks problematic is the query parameter block. The text you have assembled will work if you join it to the URL, but the QueryParameters block typically requires something like:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c86ea55d6d8689e4d8742b8ef0e3c393d8777f55.png)

Make those modifications and let us know your results.

Happy Thunking!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 27, 2020, 7:44pm UTC](https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810/3 "2020-12-27T19:44:01Z")

</div>

Most of the SMS gateways uses simple URL compilation.

First try the open link component in the control drawer and put all your text in the URL. It should work. I use “easysendsms” service this way and it is working fine for me.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:19pm UTC](https://community.thunkable.com/t/sms-api-integration-for-a-button-click-event/1041810/4 "2024-11-08T12:19:23Z")

</div>


