# How to properly set up refresh token request in Postman

**URL:** <https://community.postman.com/t/how-to-properly-set-up-refresh-token-request-in-postman/71203>\
**Category:** Help Hub\
**Tags:** authentication, oauth2\
**Created:** [November 13, 2024, 9:19pm UTC](https://community.postman.com/t/how-to-properly-set-up-refresh-token-request-in-postman/71203 "2024-11-13T21:19:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisdel](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@chrisdel](https://community.postman.com/u/chrisdel)\
**Post date:** [November 13, 2024, 9:19pm UTC](https://community.postman.com/t/how-to-properly-set-up-refresh-token-request-in-postman/71203/1 "2024-11-13T21:19:36Z")

</div>

I’m trying to refresh my auth token. When I hit the refresh button I get this error  
`"code":400,"error":"invalid_request","error_description":"client_id not specified"`

I have entered the `client_id` in the field and it does not do anything. Also see [this GH issue](https://github.com/postmanlabs/postman-app-support/issues/12110).

I selected add to url but the request url is unchanged `portal/sharing/rest/oauth2/token` (tbh I’m not sure if this option literally adds it to the URL like this, but if it should it’s obviously not).  
I also tried the other options which failed, and auto refresh is turned on.

 ![Screenshot 2024-11-13 151040](https://us1.discourse-cdn.com/getpostman/original/3X/d/2/d2fb300b23825d4b089be6b5d0e414967ca8ac46.png)  
 ![oauth](https://us1.discourse-cdn.com/getpostman/original/3X/5/0/5053be4e7bd3602755fbdcc4ccd5f236c6d1335b.png)

---

<div class="post-metadata">

**Author:** ![chrisdel](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@chrisdel](https://community.postman.com/u/chrisdel)\
**Post date:** [November 14, 2024, 6:31pm UTC](https://community.postman.com/t/how-to-properly-set-up-refresh-token-request-in-postman/71203/2 "2024-11-14T18:31:04Z")

</div>

So this issue appear to be resolved. No changes were made since the time of writing the question, _except_ my API permissions were elevated. The refresh option works now so it must have been related to that somehow, except…

The `Advanced` section seems totally unresponsive. In the question, I say the `Send In: Request URL` did nothing, but now the `client_id` IS in the URL, as I would have thought.

Changing this to Body or Headers has no effect, and the ID continues to persist in the URL (again, assuming I understand this correctly, i.e. send in URL means literally add it to the URL).

 ![Screenshot 2024-11-14 120938](https://us1.discourse-cdn.com/getpostman/original/3X/1/3/136312d9d85dbf93009019a4df5bba9cbe68d76d.png)

But id is still in the URL when header selected.

```auto
oauth2/token?client_id=xx2233oikfaiodf

```

The kicker is if I disable the `client_id` field altogether, the request still works. Unless unchecking the box doesn’t do what I think it does. The `client_id` is still in the URL here too. Even if I delete this field is still shows up in the URL.

 ![Screenshot 2024-11-14 122330](https://us1.discourse-cdn.com/getpostman/original/3X/1/3/132949f128680a7fa4f0028c966f5f88d961f8bd.png)

Maybe it’s all cache related, if PM has a cache?

---

<div class="post-metadata">

**Author:** ![security-architect16](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/security-architect16/32/32121_2.png) [@security-architect16](https://community.postman.com/u/security-architect16)\
**Post date:** [April 1, 2025, 9:24pm UTC](https://community.postman.com/t/how-to-properly-set-up-refresh-token-request-in-postman/71203/3 "2025-04-01T21:24:25Z")

</div>

Turns out you have to setup your refresh request, then get a new token. More details here:

> <https://github.com/postmanlabs/postman-app-support/issues/12770#issuecomment-2039051940>
>
> \### Is there an existing issue for this?
> 
> \- \[X\] I have searched the tracker for …existing similar issues and I know that duplicates will be closed
> 
> \### Describe the Issue
> 
> When using the auto token refresh feature or the manual refresh token feature, postman always sends a request with basic auth, even if the client authentication is set to "Send client credentials in body".
> 
> Also the use of the advances parameters doesn't seem to work for this:
> !\[image\](https://github.com/postmanlabs/postman-app-support/assets/43037258/058f240e-08ab-4253-a578-9b3065909e59)
> 
> The issue was reported one year ago for macOS #11668 and #12110
> 
> 
> \### Steps To Reproduce
> 
> 1. Set up Authorization for OAuth 2.0
> 2. Set client authentication to "Send client credentials in body"
> 3. Request a new access token
> 4. Refresh token
> !\[image\](https://github.com/postmanlabs/postman-app-support/assets/43037258/ed46b51b-bb89-4010-b924-49a48962ee8e)
> 
> 
> \### Screenshots or Videos
> 
> \_No response\_
> 
> \### Operating System
> 
> Windows
> 
> \### Postman Version
> 
> 10.24.16
> 
> \### Postman Platform
> 
> Postman App
> 
> \### User Account Type
> 
> Signed In User
> 
> \### Additional Context?
> 
> \_No response\_
