# Do vault variables work in performance tests?

**URL:** <https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762>\
**Category:** Help Hub\
**Tags:** variables, authentication, api-performance, vault\
**Created:** [September 23, 2024, 12:13pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762 "2024-09-23T12:13:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuomastammi](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tuomastammi/32/30203_2.png) [@tuomastammi](https://community.postman.com/u/tuomastammi)\
**Post date:** [September 23, 2024, 12:13pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762/1 "2024-09-23T12:13:00Z")

</div>

Hi there,

I’m trying to setup a performance test collection for our API.

I’ve stored the API (bearer) token as a vault variable. If I run the requests individually or the whole collection as a “Functional test” the requests have the correct header, the token is included in the header and requests are authorised.

If I run the “Performance test” the token is not included in the header. Instead, the template string is sent to the server in the `Authorization` header, like `Bearer {{vault:currentAccessToken}}`. Obviously the requests fail as unauthorised.

 ![Screenshot 2024-09-23 at 13.11.55](https://us1.discourse-cdn.com/getpostman/original/3X/6/6/66f3b97a1acbf73ed90c1b241aa63fa948bbad01.png)

Is this the expected result? Is it possible to use vault variables in performance tests?

I’m using Postman for Mac version 11.11.1.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 25, 2024, 2:56pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762/2 "2024-09-25T14:56:38Z")

</div>

Hey @tuomastammi 👋🏻

Welcome to the Postman Community :postman:

Currently, Vault variables are not supported in the Performance Tests.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 25, 2024, 2:57pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762/3 "2024-10-25T14:57:20Z")

</div>

Closed on October 25, 2024, 2:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![SuhasGaikwad](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@SuhasGaikwad](https://community.postman.com/u/SuhasGaikwad)\
**Post date:** [March 28, 2025, 6:36pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762/4 "2025-03-28T18:36:34Z")

</div>

Hello @tuomastammi,

With the latest version of the Postman app, vault secrets are now supported in performance tests. Please try it out and contact us if you encounter any issues. Thank you.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 28, 2025, 8:14pm UTC](https://community.postman.com/t/do-vault-variables-work-in-performance-tests/68762/5 "2025-03-28T20:14:16Z")

</div>

Opened on March 28, 2025, 8:14pm UTC


