Unable to Generate token to connect to Upstox

I am also trying to connect optiongenie to Upstox, however I noticed even though I configured the app to have the redirect URI as upstox.optiongenie.in/User/OnAuthorization. the error message shows the redirect URI as trade.optiongenie.in/User/OnAuthorization. I have to remove the https from the URI because I am a new user and the community forum doesn’t allow to me to enter more than one uri

Please find the screenshots with the exact error messages. when I manually entered the URL in a different tab

from
https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id=a87a4b09-ab41-4c73-9cc9-263a43859401&redirect_uri=https://trade.optiongenie.in/User/OnAuthorization

I am able to get the PIN input dialog and everything works fine.

It looks like there is some issues at the upstox side. Please check the same.

Hi @sudha801
In the Option Genie app you’ve created in my apps section of upstox, set the redirect URL to https://trade.optiongenie.in/User/OnAuthorization, as this is the URL used by Option Genie on their end.

Using this setup, I was able to successfully log in to Option Genie with Upstox.

Additionally, please ensure you are copying the correct apiKey and apiSecret from the “My Apps” section of Upstox.

I’ve attached a screenshot showing my successful login to Option Genie via Upstox.

Thank you