# Invalid grant while refreshing the access token

**URL:** <https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [November 2, 2022, 5:35am UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195 "2022-11-02T05:35:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftl-devs](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@ftl-devs](https://devforum.zoom.us/u/ftl-devs)\
**Post date:** [November 2, 2022, 5:35am UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/1 "2022-11-02T05:35:59Z")

</div>

Hello,

When we are trying to update access tokens of the users of our Zoom app using their refresh token, we are getting this error from Zoom’s OAuth endpoint: “{‘reason’: ‘Invalid Token!’, ‘error’: ‘invalid\_grant’}”

A few things to note: We are aware that a refresh token can be used only once and the latest refresh token must always be used for the next refresh request. However, we are getting the error even when are making the request for the first time.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 3, 2022, 4:14pm UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/2 "2022-11-03T16:14:44Z")

</div>

Hi @ftl-devs  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
Here is a link to our Docs on how to refresh tokens:

> **[OAuth with Zoom](https://marketplace.zoom.us/docs/guides/auth/oauth/#refreshing-an-access-token)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Now, could you please share with me the request URL that you are sending when refreshing the access\_token ?

Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![ftl-devs](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@ftl-devs](https://devforum.zoom.us/u/ftl-devs)\
**Post date:** [November 3, 2022, 5:23pm UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/3 "2022-11-03T17:23:26Z")

</div>

Hi Elisa,

This is the url we’re sending the request to: [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

The payload of our request is { “grant\_type”: “refresh\_token”, “refresh\_token”: actual\_refresh\_token\_here }.

---

<div class="post-metadata">

**Author:** ![ftl-devs](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@ftl-devs](https://devforum.zoom.us/u/ftl-devs)\
**Post date:** [November 7, 2022, 10:41am UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/4 "2022-11-07T10:41:16Z")

</div>

Please let us know if we are doing anything wrong.

Thank you

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 7, 2022, 3:58pm UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/5 "2022-11-07T15:58:29Z")

</div>

Hi @ftl-devs  
Could you please make sure that you are passing the grant\_type and refresh\_token as query params?  
Your request URL should look something like this:  
[https://zoom.us/oauth/token?grant\_type=refresh\_token&refresh\_token={yourRefreshToken}](https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token=%7ByourRefreshToken%7D)

Let me know if this helps  
Elisa

---

<div class="post-metadata">

**Author:** ![ftl-devs](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@ftl-devs](https://devforum.zoom.us/u/ftl-devs)\
**Post date:** [November 9, 2022, 12:21pm UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/6 "2022-11-09T12:21:30Z")

</div>

Thank you very much! That helped.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 7, 2024, 6:06pm UTC](https://devforum.zoom.us/t/invalid-grant-while-refreshing-the-access-token/78195/8 "2024-09-07T18:06:55Z")

</div>

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