# Can we adjust OAuth Bearer Token Expiration time?

**URL:** <https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356>\
**Category:** Developer Q&A Forum\
**Created:** [August 24, 2023, 6:41pm UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356 "2023-08-24T18:41:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [August 24, 2023, 6:41pm UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356/1 "2023-08-24T18:41:35Z")

</div>

Hi,

I’m working with the Business Events Grail endpoint via OAuth Client Authentication. The returned expiration is set at 5 minutes… Do we have the ability to increase that time?

Thanks

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [August 24, 2023, 7:36pm UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356/2 "2023-08-24T19:36:52Z")

</div>

Idk if this is the answer that you want but you can set the date of expiration token

 ![natanael_mendes_0-1692905806161.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/392443db2e7821865352619b996b8cb829eee323.png)

---

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [August 24, 2023, 8:56pm UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356/3 "2023-08-24T20:56:09Z")

</div>

API Tokens are different but thanks for the reply.

OAuth bearer token is the new Grail authentication method

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [August 25, 2023, 5:50am UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356/4 "2023-08-25T05:50:12Z")

</div>

Hi&nbsp;[@Nick-Montana](https://community.dynatrace.com/user/48870),

due to security reasons, the expiration is set to such a low value as 5 minutes and it is not possible to increase this.

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [June 4, 2025, 6:28pm UTC](https://community.dynatrace.com/t/can-we-adjust-oauth-bearer-token-expiration-time/41356/5 "2025-06-04T18:28:14Z")

</div>

This is where you see the 300 coming when you request a the token from the DT SSO Url. Whe about long is this token valid for in its life time?
