# Postman Webhook - accessing header of request sent to webhook?

**URL:** <https://community.postman.com/t/postman-webhook-accessing-header-of-request-sent-to-webhook/77005>\
**Category:** Help Hub\
**Tags:** variables, webhook\
**Created:** [March 15, 2025, 11:39am UTC](https://community.postman.com/t/postman-webhook-accessing-header-of-request-sent-to-webhook/77005 "2025-03-15T11:39:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![payload-architect-30](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/payload-architect-30/32/31945_2.png) [@payload-architect-30](https://community.postman.com/u/payload-architect-30)\
**Post date:** [March 15, 2025, 11:39am UTC](https://community.postman.com/t/postman-webhook-accessing-header-of-request-sent-to-webhook/77005/1 "2025-03-15T11:39:29Z")

</div>

Hi, I’ve followed the instruction in [Trigger collection runs using webhooks | Postman Docs](https://learning.postman.com/docs/collections/running-collections/collection-webhooks/#accessing-the-request-body-in-scripts), and have created and triggered the webhook successfully.  
Per the article, ‘When you trigger the webhook, the `previousRequest` global variable is temporarily created’ - this is a critical variable to print out the contents of the body - and the post-script could access it just fine.

The challenge I have now is to access the request header sent to this webhook - I tried previousHeader which shows up in the intellisense (i.e. globals.previousHeader) but does not seem to work  
.  
Anyone has any idea if this is something that’s achievable?

---

<div class="post-metadata">

**Author:** ![payload-architect-30](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/payload-architect-30/32/31945_2.png) [@payload-architect-30](https://community.postman.com/u/payload-architect-30)\
**Post date:** [March 16, 2025, 1:46pm UTC](https://community.postman.com/t/postman-webhook-accessing-header-of-request-sent-to-webhook/77005/2 "2025-03-16T13:46:10Z")

</div>

Figured it out, we can access the headers of request sent to the webhook using:  
globals.previousRequest.headers
