# How to configure a monitor response

**URL:** <https://community.postman.com/t/how-to-configure-a-monitor-response/48349>\
**Category:** Help Hub\
**Created:** [June 9, 2023, 6:21am UTC](https://community.postman.com/t/how-to-configure-a-monitor-response/48349 "2023-06-09T06:21:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacecraft-geoscie12](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@spacecraft-geoscie12](https://community.postman.com/u/spacecraft-geoscie12)\
**Post date:** [June 9, 2023, 6:21am UTC](https://community.postman.com/t/how-to-configure-a-monitor-response/48349/1 "2023-06-09T06:21:42Z")

</div>

Hi there,

I am trying to execute a handshake that establishes a webhook on an asana project. Essentially, a Postman monitor is receiving a webhook, and the response back to that webhook needs to include certain headers, and a certain body.

I can’t figure out how to configure the response.

Below is my code. I’m not sure what to use in order to tell postman what to send back

secret = pm.collectionVariables.get(‘secret’)

pm.test(“Status code is 200”, function () {  
pm.response.to.have.status(200);  
pm.response.headers.add({  
key: ‘Content-Type’,  
value: ‘application/json’,  
key: ‘Accept’,  
value: ‘application/json’,  
key: ‘X-Hook-Secret’,  
value: secret  
});  
pm.response.body.add({  
key: ‘status’,  
value: ‘success’  
});  
});

postman.setNextRequest(null);
