# REST API error on OAuth token refresh

**URL:** <https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520>\
**Category:** API and Webhooks\
**Created:** [August 2, 2018, 10:58pm UTC](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520 "2018-08-02T22:58:39Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Nigel\_Ellis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nigel_ellis/32/11315_2.png) [@Nigel\_Ellis](https://devforum.zoom.us/u/Nigel_Ellis)\
**Post date:** [September 7, 2018, 6:08pm UTC](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520/21 "2018-09-07T18:08:43Z")

</div>

FWIW, I was also running into this issue.&nbsp; &nbsp;Best I can tell you’ll also hit this error if you issue if you&nbsp;request more than one refresh token for your oauth client.&nbsp; &nbsp;Each successive refreshToken appears to revoke the prior token.&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Sam\_Teacher](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Sam\_Teacher](https://devforum.zoom.us/u/Sam_Teacher)\
**Post date:** [September 21, 2018, 6:24am UTC](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520/22 "2018-09-21T06:24:05Z")

</div>

```
I also encountered the same problem, I wonder how you solved it.Could you help me?
The error I received was bad request.
Does the user in the post request need base64 encryption?
There is no redirect\_uri in this request, is it not necessary?

curl -X POST -H "Content-Type:application/x-www-form-urlencoded" \ --user {client-id}:{client-secret} \ --data 'grant\_type=refresh\_token&refresh\_token={refresh-token}' \ https://zoom.us/oauth/token
```

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 21, 2018, 10:55pm UTC](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520/23 "2018-09-21T22:55:23Z")

</div>

Hi Sam,&nbsp;

What error are you receiving when using the curl command?&nbsp;

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:51pm UTC](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520/24 "2020-08-21T17:51:57Z")

</div>

Closed on August 21, 2020, 5:51pm UTC



[Previous page](https://devforum.zoom.us/t/rest-api-error-on-oauth-token-refresh/1520.md?page=1)
