For API login below is my URL request{CLIENT_ID}&redirect_uri=

after this it was redirect to

as it mention in upstox API documentation web site.
Upon successful authentication, this API will redirect to the URL specified in the redirect_url parameter, with the code essential for the token generation included within the request parameters.


@Maheshy Before you are taken to the desired URL, you will first be directed to a login page. Here, you must authenticate yourself by entering your phone number and the OTP sent to it. Once you successfully complete this step, you will be redirected to the target URL, along with an authentication code.

Below is a thread that could be of assistance to you: