# How to programmatically set a "saved" token before every request

**URL:** <https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384>\
**Category:** Help Hub\
**Tags:** authentication, access\_token, oauth2-token, collection-runner\
**Created:** [November 18, 2024, 9:06pm UTC](https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384 "2024-11-18T21:06:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![koustubh24](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@koustubh24](https://community.postman.com/u/koustubh24)\
**Post date:** [November 18, 2024, 9:06pm UTC](https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384/1 "2024-11-18T21:06:37Z")

</div>

I’ve got a bunch of “saved” token that I manually set before I run any of my requests.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f99d2cfd12ce505c72da47dde1af7962d2ea7f0e.png)

Is there a way to programmatically set these “saved” tokens using tokenName (or something else) before sending the request manually OR through runner ?

---

<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:** [November 19, 2024, 5:38am UTC](https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384/2 "2024-11-19T05:38:56Z")

</div>

Hey @koustubh24 👋

Currently, the ability to programmatically set that is not available.

This sounds like a great feature request though, could you raise a new one on our GitHub issue tracker please?

> **[Build software better, together](https://github.com/postmanlabs/postman-app-support/issues/new?assignees=&labels=feature&projects=&template=feature_request.yml&title=%3Ctitle%3E)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

<div class="post-metadata">

**Author:** ![koustubh24](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@koustubh24](https://community.postman.com/u/koustubh24)\
**Post date:** [November 19, 2024, 8:03pm UTC](https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384/3 "2024-11-19T20:03:14Z")

</div>

Thank you @danny-dainton , as requested I’ve raised the [ticket#13277](https://github.com/postmanlabs/postman-app-support/issues/13277) in GitHub.

---

<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:** [December 19, 2024, 8:04pm UTC](https://community.postman.com/t/how-to-programmatically-set-a-saved-token-before-every-request/71384/4 "2024-12-19T20:04:13Z")

</div>

Closed on December 19, 2024, 8:04pm UTC

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