# API call on user's certain actions

**URL:** <https://community.hubspot.com/t/api-call-on-users-certain-actions/100226>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [February 15, 2024, 11:10am UTC](https://community.hubspot.com/t/api-call-on-users-certain-actions/100226 "2024-02-15T11:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKumar862](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@AKumar862](https://community.hubspot.com/u/AKumar862)\
**Post date:** [February 15, 2024, 11:10am UTC](https://community.hubspot.com/t/api-call-on-users-certain-actions/100226/1 "2024-02-15T11:10:39Z")

</div>

In my chatbot, I need to call an API and parse the response to display it within the bot when the user selects a specific option. Can you please confirm if this is achievable?

---

<div class="post-metadata">

**Author:** ![dsmarion](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dsmarion/32/7509_2.png) [@dsmarion](https://community.hubspot.com/u/dsmarion)\
**Post date:** [February 15, 2024, 1:36pm UTC](https://community.hubspot.com/t/api-call-on-users-certain-actions/100226/2 "2024-02-15T13:36:35Z")

</div>

I have not tried this but it looks like you can run a code snippet and make your api call and handle the response. Let me know if this works because I might want to use it down the road. 🙂

 ![dsmarion_0-1708004078296.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/e/9edabc312821f372d2c8ee801aeaf7c44c6ea2bc.png)
