# Refresh access token issue

**URL:** <https://devforum.zoom.us/t/refresh-access-token-issue/61648>\
**Category:** API and Webhooks\
**Created:** [December 20, 2021, 3:52am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648 "2021-12-20T03:52:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 20, 2021, 3:52am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/1 "2021-12-20T03:52:59Z")

</div>

Hello,  
I am using zoom meeting REST APIs. Initially i created app in zoom marketplace with my zoom business plan. When i make API request its generating access token successfully, but when its expire after 1 hour, i am enable to make refresh token request. Its returning an error every time as following -

**Error**  
{  
“reason”: “Invalid Token!”,  
“error”: “invalid\_request”  
}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
/oauth/token

Kindly guide me with the solution asap.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 20, 2021, 8:10pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/2 "2021-12-20T20:10:01Z")

</div>

Hi @bhagyesh.koshti ,

Can you please confirm you’re doing the following to get a refresh? [https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 21, 2021, 4:02am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/3 "2021-12-21T04:02:06Z")

</div>

Hello,  
Yes i am following steps mentions in API document for refresh token API.

Here is a way i am requesting refresh token API call -

$refresh\_token = refresh\_token value received in response with access\_token.

$client = new GuzzleHttp\Client([‘base\_uri’ =\> ‘[https://zoom.us](https://zoom.us)’]);  
$response = $client-\>request(‘POST’, ‘/oauth/token’, [  
“headers” =\> [  
“Authorization” =\> "Basic " . base64\_encode(CLIENT\_ID . ‘:’ . CLIENT\_SECRET)  
],  
‘form\_params’ =\> [  
“grant\_type” =\> “refresh\_token”,  
“refresh\_token” =\> $refresh\_token  
],  
]);

Thanks,  
Bhagyesh

---

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 23, 2021, 5:44am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/4 "2021-12-23T05:44:26Z")

</div>

Can you please reply asap please?

---

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 23, 2021, 12:41pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/5 "2021-12-23T12:41:46Z")

</div>

Hello,  
I need solution for this issue as soon as possible as its interfering my development process.

Hoping for quick response.

Thanks,  
Bhagyesh

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 23, 2021, 3:06pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/6 "2021-12-23T15:06:29Z")

</div>

Hi @bhagyesh.koshti ,

Are you using the latest refresh\_token value in your request? Each time you generate a token, you’ll have a new refresh token.

If that is not the problem, are you able to make a request in Postman? If you can make the request successfully in Postman, it may be a code logic issue. Please click the thread below for example:

> [@{"reason":"Invalid Token!","error":"invalid\_request"}](https://devforum.zoom.us/t/reason-invalid-token-error-invalid-request/27567/2):
>
> Hey @kristian, What is your app name? Are you able to make the refresh request via Postman? Thanks, Tommy

Gianni

---

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 27, 2021, 6:53am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/7 "2021-12-27T06:53:30Z")

</div>

Hello,  
My refresh token issue is fixed now.

Thanks,  
Bhagyesh

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 27, 2021, 2:56pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/8 "2021-12-27T14:56:29Z")

</div>

Awesome, what was the issue? @bhagyesh.koshti

---

<div class="post-metadata">

**Author:** ![bhagyesh.koshti](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bhagyesh.koshti](https://devforum.zoom.us/u/bhagyesh.koshti)\
**Post date:** [December 28, 2021, 4:02am UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/9 "2021-12-28T04:02:05Z")

</div>

Hello,  
Refresh token value i passed while making refresh token request was not correct.

Thanks,  
Bhagyesh

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 4, 2022, 7:21pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/10 "2022-01-04T19:21:46Z")

</div>

Hey @bhagyesh.koshti,

Thank you for sharing your solution here! I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 4, 2022, 7:21pm UTC](https://devforum.zoom.us/t/refresh-access-token-issue/61648/11 "2022-01-04T19:21:49Z")

</div>


