# I got '400 : {"reason":"Invalid request : Redirect URI mismatch.","error":"invalid\_grant"}' error after my ngrok re-started

**URL:** <https://devforum.zoom.us/t/i-got-400-reason-invalid-request-redirect-uri-mismatch-error-invalid-grant-error-after-my-ngrok-re-started/77782>\
**Category:** Authentication\
**Created:** [October 23, 2022, 1:55pm UTC](https://devforum.zoom.us/t/i-got-400-reason-invalid-request-redirect-uri-mismatch-error-invalid-grant-error-after-my-ngrok-re-started/77782 "2022-10-23T13:55:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikiki.blue](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kikiki.blue/32/42445_2.png) [@kikiki.blue](https://devforum.zoom.us/u/kikiki.blue)\
**Post date:** [October 23, 2022, 1:55pm UTC](https://devforum.zoom.us/t/i-got-400-reason-invalid-request-redirect-uri-mismatch-error-invalid-grant-error-after-my-ngrok-re-started/77782/1 "2022-10-23T13:55:02Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
Oauth with Zoom

**Description**  
Yesterday I succeeded getting access token, refresh token, and get information /me.  
But today I re-started ngrok(free plan), so my domain is changed.  
so I changed zoom app’s settings, and my code’s uri domain changed.  
but after that, I always got the same error even I succeeded yester with this code.

> {“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid\_grant”}

I checked my server’s redirect code,  
zoom market place’s settings,  
all the redirect uri was same.

This is my local server’s redirect log.

`Redirected to https://zoom.us/oauth/authorize?response_type=code&redirect_uri=https://e2a7-222-114-152-95.ngrok.io/oauth/zoom_callback&client_id=blabla`

This is my app credentials.

> Redirect URL for OAuth  
> Destination URL where Zoom will send the access token after the user completes the OAuth authentication.  
> [https://e2a7-222-114-152-95.ngrok.io/oauth/zoom\_callback](https://e2a7-222-114-152-95.ngrok.io/oauth/zoom_callback)

> Add allow lists  
> [https://e2a7-222-114-152-95.ngrok.io/oauth/zoom\_callback](https://e2a7-222-114-152-95.ngrok.io/oauth/zoom_callback)

as you can see, all redirect uri is same.

What should I re-check for solving this error?

**Error?**  
400 : {“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid\_grant”}

Please let me know what should I check more.  
Thanks.

---

<div class="post-metadata">

**Author:** ![kikiki.blue](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kikiki.blue/32/42445_2.png) [@kikiki.blue](https://devforum.zoom.us/u/kikiki.blue)\
**Post date:** [October 24, 2022, 7:52am UTC](https://devforum.zoom.us/t/i-got-400-reason-invalid-request-redirect-uri-mismatch-error-invalid-grant-error-after-my-ngrok-re-started/77782/2 "2022-10-24T07:52:13Z")

</div>

I solved this issue by my self.  
The problem was get access token api.  
I sent different uri when I call get access token api after I redirected to my callback.  
I’m going to next step.
