# OAuth authentication failed with status code 400

**URL:** <https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532>\
**Category:** Dynatrace API\
**Tags:** tokens, dynatrace-api\
**Created:** [May 11, 2024, 2:14pm UTC](https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532 "2024-05-11T14:14:04Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [April 12, 2025, 11:03am UTC](https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532/16 "2025-04-12T11:03:32Z")

</div>

Hi&nbsp;[@Hazard](https://community.dynatrace.com/user/75658)&nbsp;remove the quotes around _client\_credentials_ for the _grant\_type_&nbsp;query parameter.

You had it like this:

![andre_vdveen_0-1744455762757.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fe71ed1c6251303aeabe39bc387c0a68c356de77.png)

But it should be without the “” around client\_credentials, like this:

![andre_vdveen_1-1744455799598.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d8fa89e6115ee609326eaf83344e6d24370786a6.png)

I confirmed it in Postman, with “” it breaks.

---

_[View the full topic](https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532)._
