# Webhook and API Key

**URL:** <https://community.hubspot.com/t/webhook-and-api-key/133702>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [June 2, 2025, 5:44am UTC](https://community.hubspot.com/t/webhook-and-api-key/133702 "2025-06-02T05:44:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![THa51](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@THa51](https://community.hubspot.com/u/THa51)\
**Post date:** [June 2, 2025, 5:44am UTC](https://community.hubspot.com/t/webhook-and-api-key/133702/1 "2025-06-02T05:44:09Z")

</div>

Hello,

I am trying to create a WebHook in Private app integration.

I can do this, but currently the web hook created does not have anywhere where I can supply an API Key from the server of the WebHook. eg. My webhook server is AWS Gateway API. In AWS gateway, I have an option for any client that connect must supply and API Key as defined by the AWS gateway API.

How can I supply the AWS Gateway API key to the HubSpot Webhook to post along during a webhook call?

Note that I am aware of “X-HubSpot-Signature”, and this is not what am I referring to.

Thank you,

Tam

---

<div class="post-metadata">

**Author:** ![BrandonWoodruff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brandonwoodruff/32/61045_2.png) [@BrandonWoodruff](https://community.hubspot.com/u/BrandonWoodruff)\
**Post date:** [June 2, 2025, 1:24pm UTC](https://community.hubspot.com/t/webhook-and-api-key/133702/2 "2025-06-02T13:24:47Z")

</div>

Hello! HubSpot doesn’t natively support attaching custom headers. but here are three workarounds that you could try that may help?

1. Use an Intermediary Proxy Layer  
- Build a service that receives the webhook from HubSpot, adds the necessary header, and then forwards the request to your AWS API Gateway

2. Switch to OAuth and remove API Key Requirement  
- You could utilize HubSpots public app +OAuth for auth, and then allow your AWS endpoint to verify bia token or signature from that.  
3. Use Query Parameters for your key delivery  
- If your API Gateway can accept the key via the query string If your AWS API Gateway can accept the API key via query string (e.g., [https://example.execute-api.aws.com/hook?apiKey=your-key](https://example.execute-api.aws.com/hook?apiKey=your-key)), configure the HubSpot webhook URL with the key embedded.

NOTE: This third option is a lot less secure, and I would suggest doing one of the other two options.  
Let me now if any of these options help, or if there is any more clarifications that I can provide!

✔ Was I able to help answer your question? Help the community by **marking it as a solution.**

| ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/a/caa61d0756386199fdc03a42bc6ec271c2df100c.jpeg) | **Brandon Woodruff**  
Senior Software Developer with [Pearagon](https://www.pearagon.com/)Still have questions? Reach out at brandon@pearagon.com |

---

<div class="post-metadata">

**Author:** ![THa51](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@THa51](https://community.hubspot.com/u/THa51)\
**Post date:** [June 2, 2025, 11:53pm UTC](https://community.hubspot.com/t/webhook-and-api-key/133702/3 "2025-06-02T23:53:00Z")

</div>

Thank you for your response. Knowling now that this feature is not OOTB, then we will look into other options. Thanks again.
