# OAuth2 Get Acces Token Manually

**URL:** <https://community.postman.com/t/oauth2-get-acces-token-manually/16807>\
**Category:** Help Hub\
**Tags:** authentication, oauth2, post, oauth2-token\
**Created:** [October 15, 2020, 3:03pm UTC](https://community.postman.com/t/oauth2-get-acces-token-manually/16807 "2020-10-15T15:03:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BAT3](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@BAT3](https://community.postman.com/u/BAT3)\
**Post date:** [October 15, 2020, 3:03pm UTC](https://community.postman.com/t/oauth2-get-acces-token-manually/16807/1 "2020-10-15T15:03:43Z")

</div>

Hello,  
my problem is if i try to get a new OAuth2 Acces token at the Authorization tab it works, but i want to do the Post Request manually and this doesnt.  
I ve tried to put every request Parameter (grant\_type; username; password; client\_id; client\_secret) as a body (x-www-urlencoded) and the acces token url as request URL. Getting a 401 error there.

 ![req1](https://us1.discourse-cdn.com/getpostman/original/3X/e/4/e4c0f6949f56734ae41d3739d261591f830a81f4.png)

Ive also tried to put everything direct in the Request URl but same Error.

 ![req2](https://us1.discourse-cdn.com/getpostman/original/3X/5/1/51caf5aedda89d40725a1fd2992b9f68219ee31d.png)  
What am I doing wrong? it works when im requesting the Token via the authorization tab. I dont know wich permissions are missing.  
 ![req3](https://us1.discourse-cdn.com/getpostman/original/3X/a/c/acce4d59ea8de48fed616bc2c651f6775f22479d.png)

---

<div class="post-metadata">

**Author:** ![gpub1](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gpub1](https://community.postman.com/u/gpub1)\
**Post date:** [October 15, 2020, 4:14pm UTC](https://community.postman.com/t/oauth2-get-acces-token-manually/16807/2 "2020-10-15T16:14:47Z")

</div>

Hi BAT3

Welcome to community.

Could you please check with your Infra team if your machine is allowed. Let me know their reply. Thanks 🙂

You need to put Authorization in Value in Headers, Get help from dev if possible

---

<div class="post-metadata">

**Author:** ![BAT3](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@BAT3](https://community.postman.com/u/BAT3)\
**Post date:** [October 15, 2020, 10:12pm UTC](https://community.postman.com/t/oauth2-get-acces-token-manually/16807/3 "2020-10-15T22:12:44Z")

</div>

Thx for the quick replay.  
I could solve it by reading out the Request Header from the “Get New Acces Token” popup Window request in the Postman console. There I could see the Authentication parameter and add it.  
Nice so Im so relieved, couldn make it without your Help!

---

<div class="post-metadata">

**Author:** ![gpub1](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gpub1](https://community.postman.com/u/gpub1)\
**Post date:** [October 16, 2020, 2:15pm UTC](https://community.postman.com/t/oauth2-get-acces-token-manually/16807/4 "2020-10-16T14:15:22Z")

</div>

Glad it helped you and was solution to your query! Keep posting and lets learn together
