# Send request to API or webhook when user clicks a button

**URL:** <https://community.weweb.io/t/send-request-to-api-or-webhook-when-user-clicks-a-button/100>\
**Category:** Ask us anything\
**Created:** [December 14, 2021, 2:45pm UTC](https://community.weweb.io/t/send-request-to-api-or-webhook-when-user-clicks-a-button/100 "2021-12-14T14:45:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.weweb.io/u/Alex)\
**Post date:** [December 14, 2021, 2:45pm UTC](https://community.weweb.io/t/send-request-to-api-or-webhook-when-user-clicks-a-button/100/1 "2021-12-14T14:45:32Z")

</div>

Hi there! When a user clicks a button, can I then send a request to a outside API or a webhook? I would like to generate something on integromat?

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 14, 2021, 3:33pm UTC](https://community.weweb.io/t/send-request-to-api-or-webhook-when-user-clicks-a-button/100/2 "2021-12-14T15:33:51Z")

</div>

Hi Alex 👋

Yes!

First, you need to add the REST API plugin.

Then, you will have the API request actions in the workflows 👇

**Step 1**

 ![1_datasourceapi](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/2c573b4116d490e3166d3e99d688c266e13c07c5.jpeg)

**Step 2**

 ![2_workflowonclick](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/ee9f4209511ace472c73d149eb5ece0bb84d08b2.jpeg)

Does that help?

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.weweb.io/u/Alex)\
**Post date:** [December 14, 2021, 3:41pm UTC](https://community.weweb.io/t/send-request-to-api-or-webhook-when-user-clicks-a-button/100/3 "2021-12-14T15:41:51Z")

</div>

Yes it does, thank you
