# Unable to obtain a token with the Management API. "400 Bad Request"

**URL:** <https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298>\
**Category:** Get Help\
**Tags:** actions-management-api, management-api\
**Created:** [February 12, 2023, 3:19pm UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298 "2023-02-12T15:19:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwarner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rwarner](https://community.auth0.com/u/rwarner)\
**Post date:** [February 12, 2023, 3:19pm UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/1 "2023-02-12T15:19:33Z")

</div>

I have no issues with the testing token that I can manually issue via the dashboard however in trying to move to production (currently testing in Postman) I am getting a 400 Bad Request error.

I am following all of the instructions here: [Get Management API Access Tokens for Production](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production)

Below is a screenshot from Postman. Where am I going wrong?

 ![postman](https://global.discourse-cdn.com/auth0/original/3X/4/a/4ab77873a992f009b5fc68dd9c19bddbcc4fe3af.jpeg)

---

<div class="post-metadata">

**Author:** ![wayne.lim](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wayne.lim/32/44587_2.png) [@wayne.lim](https://community.auth0.com/u/wayne.lim)\
**Post date:** [February 13, 2023, 6:32am UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/2 "2023-02-13T06:32:27Z")

</div>

Hello @rwarner ,

Welcome to the Community!

Would you be able to run an example curl request?  
In your dashboard, go to APIs \> Auth0 Management API \> Test Tab \> and select the application you want to test in the dropdown.

Any other error message besides a 400 Bad Request?

Thanks!

---

<div class="post-metadata">

**Author:** ![rwarner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rwarner](https://community.auth0.com/u/rwarner)\
**Post date:** [February 13, 2023, 2:16pm UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/3 "2023-02-13T14:16:56Z")

</div>

Hi @wayne.lim . Thanks for responding here. I actually don’t get any errors through that Test. I get an access token without any issues. See below. Ultimately I am going to be calling this API from my backend (Xano) however I am just testing things in Postman. Is it perhaps how I have it structured in Postman?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/0/b/0b7c22b7f5d4c5f7fe04cceac4fe3c385f505a00.png)

---

<div class="post-metadata">

**Author:** ![wayne.lim](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wayne.lim/32/44587_2.png) [@wayne.lim](https://community.auth0.com/u/wayne.lim)\
**Post date:** [February 14, 2023, 5:35am UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/4 "2023-02-14T05:35:06Z")

</div>

Hello @rwarner ,

Thanks for checking and good to know that it works from the dashboard. At least now we can rule out the error was from Auth0.

It might be a misconfiguration in your Postman. Would you be able to try and request with this configuration? Selecting ‘Raw’ and then ‘JSON’ and input your body like so.

 ![Screenshot 2023-02-14 at 1.26.06 PM](https://global.discourse-cdn.com/auth0/original/3X/c/4/c4ac679c89b0d2ebaee6961b3cffdfe6775e6feb.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![rwarner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rwarner](https://community.auth0.com/u/rwarner)\
**Post date:** [February 14, 2023, 11:14am UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/5 "2023-02-14T11:14:06Z")

</div>

Yes, there was definitely something off with my Postman setup. Once I copied/pasted the CURL example as you’ve shown here it worked just fine. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 22, 2023, 12:24pm UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/6 "2023-02-22T12:24:33Z")

</div>

No worries! We’re here for you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 8, 2023, 12:25pm UTC](https://community.auth0.com/t/unable-to-obtain-a-token-with-the-management-api-400-bad-request/100298/7 "2023-03-08T12:25:26Z")

</div>

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