# Refresh token error

**URL:** <https://devforum.zoom.us/t/refresh-token-error/3649>\
**Category:** API and Webhooks\
**Created:** [March 18, 2019, 4:33pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649 "2019-03-18T16:33:23Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [March 18, 2019, 4:33pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/1 "2019-03-18T16:33:23Z")

</div>

Hi everyone!  
I received an Access and Refresh token using the code.  
When I try to refresh my tokens, I’ve got an error:

{“reason”:“Invalid request : Invalid refresh Token{refresh\_token}”,“error”:“invalid\_request”} (Invalid refresh Token{refresh\_token} without spaces)

What is the problem?

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [March 18, 2019, 6:08pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/2 "2019-03-18T18:08:50Z")

</div>

Hi Max,

Can you share the curl command that you used when trying to get the refresh token?

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [March 19, 2019, 8:27am UTC](https://devforum.zoom.us/t/refresh-token-error/3649/3 "2019-03-19T08:27:50Z")

</div>

Hi Ojus,  
Sure.  
curl -X POST   
[https://zoom.us/oauth/token](https://zoom.us/oauth/token)   
-H ‘Authorization: Basic X0\*\*\*VDYTJH’   
-H ‘Content-Type: application/x-www-form-urlencoded’   
-d ‘grant\_type=refresh\_token&refresh\_token=eyJ\*\*\*9.eyJ\*\*\*g’

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [March 21, 2019, 8:33am UTC](https://devforum.zoom.us/t/refresh-token-error/3649/4 "2019-03-21T08:33:01Z")

</div>

Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [March 27, 2019, 3:20pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/5 "2019-03-27T15:20:08Z")

</div>

Is anybody here?🧐

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [March 28, 2019, 5:00pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/6 "2019-03-28T17:00:10Z")

</div>

Hi Max,  
Please accept my apologies for the delayed response. I am currently working on your request, please expect a response from me soon

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 2, 2019, 5:19pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/7 "2019-04-02T17:19:29Z")

</div>

Hi Max,

Apologies for the delayed response.

We have recently updated our Docs, and please refer to this [page](https://marketplace.zoom.us/docs/guides/authorization/oauth-with-zoom) in our documentation, which can help resolve your issue.

Also, for faster support, I would recommend opening a ticket at [developersupport@zoom.us](mailto:developersupport@zoom.us)

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [April 4, 2019, 11:33am UTC](https://devforum.zoom.us/t/refresh-token-error/3649/8 "2019-04-04T11:33:42Z")

</div>

Did you have the possibility to go to [your page](https://marketplace.zoom.us/docs/guides/authorization/oauth)?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/d862307c105f1874b955e57f9521c8f9850c87ab.png)

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 4, 2019, 6:01pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/9 "2019-04-04T18:01:49Z")

</div>

Hi Max,

I have edited the link in the above response (which was modified after I posted here), please visit that one. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [April 5, 2019, 10:22am UTC](https://devforum.zoom.us/t/refresh-token-error/3649/10 "2019-04-05T10:22:47Z")

</div>

Hi Ojus,  
Thanks for your help, but I’ve found a “bug” on your instruction page

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/8a870ffa98585bab17a1157118dac0a87969f8b3.png)  
what is this?

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 5, 2019, 10:40pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/11 "2019-04-05T22:40:25Z")

</div>

@Max thanks for pointing it out. We have fixed the typo since

Ojus

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://devforum.zoom.us/u/Max)\
**Post date:** [April 10, 2019, 9:26am UTC](https://devforum.zoom.us/t/refresh-token-error/3649/12 "2019-04-10T09:26:03Z")

</div>

Hi @ojus.zoom!  
The problem has not been solved.

> {“reason”:“Invalid request : Invalid refresh Token{refresh \_token}”,“error”:“invalid\_request”}

---

<div class="post-metadata">

**Author:** ![Ryan\_Chapman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan_chapman/32/939_2.png) [@Ryan\_Chapman](https://devforum.zoom.us/u/Ryan_Chapman)\
**Post date:** [August 2, 2019, 6:52pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/13 "2019-08-02T18:52:32Z")

</div>

@ojus.zoom I’ve been getting this issue periodically as well. Our users are having to reauthorize too frequently due to this error response happening inconsistently. I know it’s not the code because 99% of the time it works fine. Is there a reason that tokens have to expire after 60 minutes? I work with API’s that handle financial information that last 24 hours, but to deal with a webinar or meeting it’s every hour? What is the rationale for such short time periods?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 2, 2019, 7:24pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/14 "2019-08-02T19:24:31Z")

</div>

Hey @Ryan_Chapman,

Possible duplicate / relation to:

[https://devforum.zoom.us/t/how-to-refresh-token-if-refresh-token-in-incorrect](https://devforum.zoom.us/t/how-to-refresh-token-if-refresh-token-in-incorrect)

Can you PM me with your app id (path in url when on app marketplace dashboard) and account email and we will take a look?

Thanks,  
Tommy

---

<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, 6:28pm UTC](https://devforum.zoom.us/t/refresh-token-error/3649/16 "2020-08-21T18:28:00Z")

</div>


