I am trying to get the access token and refresh token for my test app but I am getting - “‘MISMATCH_REDIRECT_URI_AUTH_CODE’ - redirect URI does not match initial auth code URI”.
The main issue is the redirect URI mismatch. Your authorization request uses https://hubspot.com, while your token request uses https://www.hubspot.com/. Both requests must use the same redirect URI.
Hopefully, it will work.
Regards,
Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 23, 2026. Thank you for your contributions to the HubSpot Community!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.
Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 23, 2026. Thank you for your contributions to the HubSpot Community!