# Using the Custom Code in Webhooks

**URL:** <https://community.hubspot.com/t/using-the-custom-code-in-webhooks/44324>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [September 24, 2021, 10:48am UTC](https://community.hubspot.com/t/using-the-custom-code-in-webhooks/44324 "2021-09-24T10:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MStoja](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mstoja/32/43872_2.png) [@MStoja](https://community.hubspot.com/u/MStoja)\
**Post date:** [September 24, 2021, 10:48am UTC](https://community.hubspot.com/t/using-the-custom-code-in-webhooks/44324/1 "2021-09-24T10:48:52Z")

</div>

Hi all ,

Q: The API key in the Custom Code in Webhooks has to be the Hubspot API key or it can be another one ? Example an API for mParticle

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 24, 2021, 11:04am UTC](https://community.hubspot.com/t/using-the-custom-code-in-webhooks/44324/2 "2021-09-24T11:04:51Z")

</div>

Hi @MStoja ,

Are you talking about the webhook action or the custom code action? If it is the ‘[custom code action](https://developers.hubspot.com/docs/api/workflows/custom-code-actions)’, you can set any secret you want.
