Please adjust your redirect_uri URL. It is currently incorrectly set to https://api.upstox.com/v2/
. Instead, it should be configured to match your domain, where you handle the callback request.
Also, we kindly ask that you refrain from opening multiple threads for the same issue.