Incorrect Redirect

My python script tries to login in Upstox API Account but i am getting redirected to https://login.upstox.com/ instead of the Redirect URL i gave provided in API app.

Yes that is the intended action. You need to open login URL in user’s browser, where user will enter their login credentials and then it will redirect to your specified redirect_url with login_code that you can use it in another api to get the access token.

1 Like

@Jaydeep_26617060 Kindly refer to the authentication flow outlined in the documentation here

Hi @Anand_Sajankar

Can you do one thing, can you remove redirect_url from request parameter? As we have already mentioned while app generation then why we need to specify it here?