# Invalid authorization code for same client id and client code

**URL:** <https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511>\
**Category:** API and Webhooks\
**Created:** [November 5, 2019, 8:26am UTC](https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511 "2019-11-05T08:26:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem.srivastava](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prem.srivastava](https://devforum.zoom.us/u/prem.srivastava)\
**Post date:** [November 5, 2019, 8:26am UTC](https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511/1 "2019-11-05T08:26:01Z")

</div>

Hi @tommy,

I am getting invalid authorization code while I am using same client id and client code, it was working for me till yesterday, but today it is not working.  
Request and response are as follows  
[https://zoom.us/oauth/token?grant\_type=authorization\_code&code=04fZbtsGFA\_P30L4tA5QQmUg870PemO8w&redirect\_uri=https://ktaproxy.dev.samsung.net:443/appbridge/api/callback/zoom](https://zoom.us/oauth/token?grant_type=authorization_code&code=04fZbtsGFA_P30L4tA5QQmUg870PemO8w&redirect_uri=https://ktaproxy.dev.samsung.net:443/appbridge/api/callback/zoom)  
Response:

{

```
"reason": "Invalid authorization code 04fZbtsGFA_P30L4tA5QQmUg870PemO8w",

"error": "invalid_request"

```

}

Please suggest if any changes required from my side.

Thanks  
Prem

---

<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:** [November 5, 2019, 5:48pm UTC](https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511/2 "2019-11-05T17:48:52Z")

</div>

Hi @prem,

Did you get the most recent code after you hit Authorize?  
[https://zoom.us/?code=](https://zoom.us/?code=){ **authorization\_code** }

 ![48%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e2d6212359bdca98c2d7866a092844d990c92af3.png)

---

<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:** [November 5, 2019, 11:21pm UTC](https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511/3 "2019-11-05T23:21:14Z")

</div>

Hey @prem.srivastava,

After requesting an [access\_token with the code in the query param](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token), the code in the redirect url is no longer valid because you can [get a new access\_token using the refresh\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#refresh-access-token).

For some reason if you need a new authorization code, then you must reinstall / re authorize the app like @michael_p.zoom mentioned above.

Let me know what questions you have!

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, 7:02pm UTC](https://devforum.zoom.us/t/invalid-authorization-code-for-same-client-id-and-client-code/6511/4 "2020-08-21T19:02:36Z")

</div>


