# "Invalid request : Redirect URI mismatch."

**URL:** <https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308>\
**Category:** API and Webhooks\
**Created:** [September 15, 2020, 2:33pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308 "2020-09-15T14:33:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 15, 2020, 2:33pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/1 "2020-09-15T14:33:14Z")

</div>

**Description**  
I am using the zoom Oauth flow. I following the steps as per the documentation. When i try to acquire access token I keep getting “Invalid request : Redirect URI mismatch.”  
I have been through all the probable reasons. I have also setup https on my system. But I cant seem to figure out the problem. Need help. I am have been stuck on this for more than two days.

**Error**  
“Invalid request : Redirect URI mismatch.”

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

**Which Endpoint/s?**  
[https://zoom.us/oauth/token?grant\_type=authorization\_code&code=AXaRew6L5b\_ywLJ0GMTRZqJBQmT9as-Ig&redirect\_uri=https%3A%2F%2F192.168.1.37%3A8080%2Fzoom%2Fauth%2FredirectUri](https://zoom.us/oauth/token?grant_type=authorization_code&code=AXaRew6L5b_ywLJ0GMTRZqJBQmT9as-Ig&redirect_uri=https%3A%2F%2F192.168.1.37%3A8080%2Fzoom%2Fauth%2FredirectUri)

**How To Reproduce (If applicable)**  
Private app

1. Just acquire the auth code and pass it in the access token request.

**Screenshots (If applicable)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1a56408b34feeabfc345642ea118e041a8cb2d4b.png)  
**Additional context**  
Add any other context about the problem here.

---

<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:** [September 15, 2020, 2:33pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/2 "2020-09-15T14:33:59Z")

</div>

Hey @libsysitdesk

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout these related threads that may have the answer you are looking for:

> [@Getting Invalid request : Redirect URI mismatch error](https://devforum.zoom.us/t/-/10484):
>
> Description I’m getting a Redirect URI mismatch error when trying to get an access token after getting the code. It’s probably because I misunderstood how redirect URI works. I tried the following: Exact same URI as in app settings Same URI that I provided in oauth/authorize call when getting the code I’m getting the same error every time. Error { “reason”: “Invalid request : Redirect URI mismatch.”, “error”: “invalid\_request” } Which App Type (OAuth / Chatbot / JWT / Webhook)? OAut…

> [@Persistent "Redirect URI mismatch" error](https://devforum.zoom.us/t/-/12097):
>
> Description When making the POST request to obtain the access and refresh tokens, I keep receiving a 403 status code, with the “Redirect URI mismatch” error. Error {“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid\_request”} Which App Type (OAuth / Chatbot / JWT / Webhook)? OAuth2 Which Endpoint/s? [https://zoom.us/oauth/token](https://zoom.us/oauth/token) Additional context I’m stuck at step 2 of OAuth2 authorization. I have obtained the authorization code from step 1, and now I’m calling the endp…

> [@OAuth with zoom - redirect uri is not used for redirect](https://devforum.zoom.us/t/-/4843):
>
> Hi, I’m currently working on an OAuth application with Zoom. Here the error occurs that the redirect Uri I specified is not accepted, but I am sent back to the zoom page. My Request URL: [https://zoom.us/oauth/authorize?client\_id=XXX&response\_type=code&redirect\_uri=http://localhost:8080/vccfg/login/oauth2/code/zoom&state=XXX](https://zoom.us/oauth/authorize?client_id=XXX&response_type=code&redirect_uri=http://localhost:8080/vccfg/login/oauth2/code/zoom&state=XXX) Location I get send to after the request: [http://zoom.us/vccfg/login/oauth2/code/zoom?code=XXX](http://zoom.us/vccfg/login/oauth2/code/zoom?code=XXX) Screenshot from my browser:

If these threads did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 15, 2020, 2:43pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/3 "2020-09-15T14:43:03Z")

</div>

I have been through all the posts, but it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 16, 2020, 10:41pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/4 "2020-09-16T22:41:21Z")

</div>

Hi @libsysitdesk,

Are you using a local URI? If so, this is likely the issue. You’ll need to host your localhost on a publicly accessible server such as ngrok. Let me know if this helps:

> [@Zoom Application Wrong redirect](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/4):
>
> Hey Subhan, I was able to reproduce this issue, and we are working on a solution now. I will post back when we have a solution. Thanks for your patience!

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 17, 2020, 9:18am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/5 "2020-09-17T09:18:11Z")

</div>

I tried using Ngrok server but it still gives the same error.

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 17, 2020, 9:27am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/6 "2020-09-17T09:27:34Z")

</div>

I also tried it with a local https server and provided my IP x.x.x.x in the redirect url but even that didnt work.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 18, 2020, 3:42pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/7 "2020-09-18T15:42:26Z")

</div>

Hi @libsysitdesk,

When using ngrok to set up a server for this, can you confirm that your Redirect URI is the same URI from the authorization (install URL), all the way through the flow to the GET Access Token request? For example, with these URLs set:  
[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d3c1fd4faea41d26002dbfd26d2847f9696ddff3.png)  
 ](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/75b1938e39983bd1537e99dc0ec0f2b9769c9d51.png)  
When I go to install the app from the “Activation” page, it defaults the redirect URI to the one specified in the “Redirect URL for OAuth” input:  
`https://zoom.us/oauth/authorize?response_type=code&client_id=ztmR8sxaSBGZ66b5laR7Ag&redirect_uri=https://zoom.us`

So in my example, if I proceed to install the app, the redirect URI needs to be **exactly** [https://zoom.us](https://zoom.us/) for the GET access\_token request or else you will see the `Redirect URI mismatch error`

When you have a chance to read this over, can you please confirm that you’re following these steps exactly?

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 19, 2020, 1:02pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/8 "2020-09-19T13:02:36Z")

</div>

[https://435cf1298b4f.ngrok.io/zoom/auth/redirectUri/](https://435cf1298b4f.ngrok.io/zoom/auth/redirectUri/) is my redirect Url. I send the same in auth code and access token request. I even made sure that its encoded the same way as shown in install url

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 19, 2020, 1:03pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/9 "2020-09-19T13:03:16Z")

</div>

Does it have anything to do with the fact that I am using a free basic plan for zoom?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 21, 2020, 9:54pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/10 "2020-09-21T21:54:38Z")

</div>

Hi @libsysitdesk,

Your plan shouldn’t impact your ability to authorize with OAuth. A few more things to check on:

- Can you confirm you’ve updated your Whitelist URLs each time you’ve started up your ngrok server?
- Can you try double encoding your redirect URL
- Can you confirm your redirect URL doesn’t contain any query params

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![libsysitdesk](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@libsysitdesk](https://devforum.zoom.us/u/libsysitdesk)\
**Post date:** [September 22, 2020, 7:32am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/11 "2020-09-22T07:32:48Z")

</div>

I have updated everytime I start ngrok as a new domain is assigned.  
Double encoding doesnt work.  
No it doesnt have any query params.  
Can i get some one on one chat to help me as I have been stuck on this for more than 2 weeks?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 24, 2020, 4:29pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/12 "2020-09-24T16:29:20Z")

</div>

Hi @libsysitdesk,

So sorry to hear you’re still having trouble—I just DM’d you to set up some time 1:1.

Thanks,  
Will

---

<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:** [October 25, 2020, 2:29am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch/30308/13 "2020-10-25T02:29:20Z")

</div>

Closed on October 25, 2020, 2:29am UTC

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