# Parsing custom headers to serverless function context

**URL:** <https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [May 11, 2023, 9:44am UTC](https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997 "2023-05-11T09:44:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFynn](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dfynn/32/45638_2.png) [@DFynn](https://community.hubspot.com/u/DFynn)\
**Post date:** [May 11, 2023, 9:44am UTC](https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997/1 "2023-05-11T09:44:17Z")

</div>

Is there a way to access custom headers sent from client on the serverless function? Currently hubspot strips out the rest of the headers. Is there a way to tell hubspot which additional headers to pass through to the serverless function?  
```  
exports.main = (context, sendResponse) =\> {  
console.log(context.headers[‘signature’]; // this will be used to decrypt the body “context.body”  
}  
```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 12, 2023, 4:17pm UTC](https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997/2 "2023-05-12T16:17:19Z")

</div>

Hi, @DFynn. Thanks for your question. This one is not possible. HubSpot does not support accessing custom headers in serverless HTTP functions. The `context.headers` object only includes a limited set of predefined headers.

This is valuable feedback. Adding your suggestion to the [Ideas Community](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas) and getting some upvotes will be very helpful in getting your suggestion in front of the Product team. If you add a link back to your Idea post, I’ll be sure to give it an upvote to help get the ball rolling.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![JHeba](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JHeba](https://community.hubspot.com/u/JHeba)\
**Post date:** [May 12, 2025, 3:35pm UTC](https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997/3 "2025-05-12T15:35:54Z")

</div>

Here’s the idea, if anyone wants to upvote it \>\> [https://community.hubspot.com/t5/HubSpot-Ideas/Access-Custom-Request-Headers-in-Serverless-HTTP-Functions/idi-p/815224](https://community.hubspot.com/t5/HubSpot-Ideas/Access-Custom-Request-Headers-in-Serverless-HTTP-Functions/idi-p/815224)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 12, 2025, 3:36pm UTC](https://community.hubspot.com/t/parsing-custom-headers-to-serverless-function-context/80997/4 "2025-05-12T15:36:49Z")

</div>

Added an upvote ✅
