# Persisting variables while using monitors in a workspace

**URL:** <https://community.postman.com/t/persisting-variables-while-using-monitors-in-a-workspace/31248>\
**Category:** Help Hub\
**Tags:** monitors, variables\
**Created:** [January 4, 2022, 9:12pm UTC](https://community.postman.com/t/persisting-variables-while-using-monitors-in-a-workspace/31248 "2022-01-04T21:12:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmb](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@timmb](https://community.postman.com/u/timmb)\
**Post date:** [January 4, 2022, 9:12pm UTC](https://community.postman.com/t/persisting-variables-while-using-monitors-in-a-workspace/31248/1 "2022-01-04T21:12:04Z")

</div>

Hi all,

I am trying to find the best way to work with monitors that need to update/persist varialbes between the requests.

I am using collection variables and how I understand they work with a monitor is that only initial values can be used and current values are private to the monitor’s session.

Using postman api calls I can update/persist the variables between the requests and for future requests, however in order to make these postman api calls I need to use an x-api-key and I’m not sure how to use this in a monitor without exposing the x-api-key to the team.
