# How to automatically set a Bearer Token for your Postman requests?

**URL:** <https://community.postman.com/t/how-to-automatically-set-a-bearer-token-for-your-postman-requests/10126>\
**Category:** Help Hub\
**Created:** [January 16, 2020, 1:57pm UTC](https://community.postman.com/t/how-to-automatically-set-a-bearer-token-for-your-postman-requests/10126 "2020-01-16T13:57:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [December 21, 2020, 12:40pm UTC](https://community.postman.com/t/how-to-automatically-set-a-bearer-token-for-your-postman-requests/10126/7 "2020-12-21T12:40:07Z")

</div>

For the record, you can do all of this from within a pre-request script at the collection level so you never have to worry about a token expiring again.

> [@Medium Article: How to Automate OAuth2 Token Renewal in Postman](https://community.postman.com/t/medium-article-how-to-automate-oauth2-token-renewal-in-postman/6630):
>
> Hey everyone, I have seen on a number of forums and stack overflow articles people expressing their frustration with the manual process Postman has for renewing OAuth2 tokens when they expire. I thought I would share a write up I did to help you get past the manual process and have your tokens renewing automatically. Let me know what you think!

---

_[View the full topic](https://community.postman.com/t/how-to-automatically-set-a-bearer-token-for-your-postman-requests/10126)._
