How to api login process automate

how to api login process automate linke a third party applicatiion playwright selenimum
puppeeter any trick tips

Upstox API does not support or recommend automating login or access token generation in light of SEBI and regulatory guidelines. Users are required to log in manually once daily by adhering to the specified login procedures.

Thank you.

thanks sir,
so first we login in web or mobile app then can we get access token from using api in python

Yes, you can do that. Generating an auth code and obtaining access tokens using that auth code is a three-step process. The first two steps must be done in a web browser:

  1. Perform Authentication: Follow the detailed instructions at Perform Authentication.
  2. Receive Auth Code: To complete this step, visit Receive Auth Code.
  3. Generate Access Token: Finally, refer to Generate Access Token to generate the access token.

You’ll receive the auth code on the Redirect URL during the second step, which you’ll need to use in the process of generating an access token in the third step.

I recommend reviewing the documentation to understand better the process: Authentication Documentation.

For a quick start, you can refer to our SDKs in Python

You can also follow How to do Upstox API Authentication?

I hope this information is helpful.

thanks for guid
I rewrote my code to first log in to the website, retrieve the access token, and then copy it into my Python code to run.

I hope it’s working well. Feel free to reach out if you have any additional questions.

1 Like

is it not stopped by cloudflare challenge ?

This is as per the SEBI and regulatory guidelines. Changes are implemented at various levels, both backend and frontend.