# ‘Invalid request : Redirect URI mismatch.’ error

**URL:** <https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022>\
**Category:** Authentication\
**Created:** [July 2, 2020, 12:10pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022 "2020-07-02T12:10:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 2, 2020, 12:10pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/1 "2020-07-02T12:10:48Z")

</div>

**Description**  
Getting Redirect URI mismatch when trying to get access token, not really sure what is going wrong since URI’s match in the account & in request

**Error**  
reason: ‘Invalid request : Redirect URI mismatch.’,  
error: ‘invalid\_request’

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

**Which Endpoint/s?**  
[https://zoom.us/oauth/token](https://zoom.us/oauth/token)

**How To Reproduce (If applicable)**  
[https://zoom.us/oauth/token?grant\_type=authorization\_code&code=V2oh6v4FUd\_IJemJDJjST2FCvNrDaZJfA&redirect\_uri=https://localhost:5001/merchant](https://zoom.us/oauth/token?grant_type=authorization_code&code=V2oh6v4FUd_IJemJDJjST2FCvNrDaZJfA&redirect_uri=https://localhost:5001/merchant)

**Screenshots (If applicable)**

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

**Additional context**  
not shown: Authorization header set to: Basic {base64encoded(clientid:clientsecret)}

It seems odd because the redirect\_uri which retrieves the code is ok…

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 2, 2020, 12:12pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/2 "2020-07-02T12:12:52Z")

</div>

Additional info:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2aa5d1d057317638fbde047ae2ff2c86a77f2171.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:** [July 6, 2020, 10:40pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/3 "2020-07-06T22:40:19Z")

</div>

Hey @vic.miron,

That is strange. Can you try adding the `/merchant` to your redirect url in the App Marketplace settings?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 7, 2020, 9:46am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/4 "2020-07-07T09:46:46Z")

</div>

Hi @tommy,

Thanks for reaching out to me. I get the exact same issue:

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

Anything more that I can provide to give you more insight to the issue?  
The odd thing is that I am able to get the code (the redirect\_uri param is ok for that but not for this…

Victor

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 7, 2020, 9:47am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/5 "2020-07-07T09:47:19Z")

</div>

@tommy I’m a new user and can’t post more than 1 pic:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/447d2cfd48de00e428b424f159ee8c5d80a618b9.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:** [July 9, 2020, 5:50pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/6 "2020-07-09T17:50:29Z")

</div>

Hey @vic.miron,

What is the name of your OAuth app? I will test it to see if I can fix the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 9, 2020, 6:03pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/7 "2020-07-09T18:03:30Z")

</div>

Hi @tommy

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

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 14, 2020, 8:41am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/8 "2020-07-14T08:41:41Z")

</div>

Hi @tommy

Have you had a chance to look over the above mentioned issue?

Victor

---

<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:** [July 14, 2020, 6:08pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/9 "2020-07-14T18:08:58Z")

</div>

Hey @vic.miron,

In your `Redirect URL for OAuth` input, please try putting your ngrok domain.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vic.miron](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vic.miron](https://devforum.zoom.us/u/vic.miron)\
**Post date:** [July 16, 2020, 9:28am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/10 "2020-07-16T09:28:06Z")

</div>

Hey @tommy

This is what I’ve did in the beginning, note the first two screenshots.  
Should I try something different?

Victor

---

<div class="post-metadata">

**Author:** ![weflutter](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/weflutter/32/1603_2.png) [@weflutter](https://devforum.zoom.us/u/weflutter)\
**Post date:** [July 18, 2020, 11:31am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/11 "2020-07-18T11:31:42Z")

</div>

Hey @tommy,

Just following up on the above since we’ve been blocked for about 2 weeks on this issue and can’t proceed with the integration that @vic.miron is trying to build. Is there any chance we get on a call with someone to help us out?

Best,  
Arielle Bitton

---

<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:** [July 22, 2020, 6:51am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/12 "2020-07-22T06:51:31Z")

</div>

Hey @weflutter, @vic.miron,

Sure, I will PM you.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Lynk-Developer](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Lynk-Developer](https://devforum.zoom.us/u/Lynk-Developer)\
**Post date:** [March 9, 2022, 3:04am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/13 "2022-03-09T03:04:18Z")

</div>

Hi. I’m having the same problem.

1. getting the code works fine and it’s the same redirect\_uri. I only have one.
2. it was working fine
3. I added a querystring param locally (myVar) that is passed after the zoomAuth redirection during login, so the url in the browser looks like this:  
https://{mydomainname}/? **myvar** =aaba3854fc33c0648079a3e84881& **code** =greh6YcVBK\_Sv5welu0TpmJTYxzXG28eQ
4. Is the query param “myvar” causing this problem. I believe it is.
5. How can i fix this. I can’t seem to find a fix here in your devForum or docs.

Thanks.

---

<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:** [March 10, 2022, 4:27pm UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/14 "2022-03-10T16:27:03Z")

</div>

Hi @Lynk-Developer ,

Yes it’s probably the cause. Please remove the parameter and use the standard OAuth authorization/authentication set up described in our docs.

Gianni

---

<div class="post-metadata">

**Author:** ![Lynk-Developer](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Lynk-Developer](https://devforum.zoom.us/u/Lynk-Developer)\
**Post date:** [March 11, 2022, 5:56am UTC](https://devforum.zoom.us/t/invalid-request-redirect-uri-mismatch-error/23022/15 "2022-03-11T05:56:57Z")

</div>

I changed query param {myVar} to {state}. Works now.
