DEVELOPER API login

For API login below is my URL request

https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={CLIENT_ID}&redirect_uri=http://127.0.0.1

after this it was redirect to
https://login.upstox.com/

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.

https://<redirect_uri>?code=mk404x&state=XX56849

@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: