API URL for posting TOTP / 2FA?

Hi team,

I am trying to automate the login workflow in my code. I have enabled TOTP on my account and I am wondering is there’s a direct API URL to submit TOTP during the login flow? I know SEBI has made it mandatory to have manual intervention in the login process but Zerodha does offer a direct API URL to validate the TOTP (https://kite.zerodha.com/api/twofa).

Does DhanHQ provide any such direct URL to validate the OTP during login flow?

Hello @shashanks

Currently, we have access-token module for login, for all our users. This is very simple where all you need to do is create an access token and you can use it for upto 30 days.

TOTP is something we did look into earlier, but have decided to pause till the new regulations come into picture.

Hi @Hardik thanks for your reply.

Does this mean the login flow can be fully automated without the need of any manual action to be taken by the user like clicking on auth URL or similar?

Hey @shashanks

Yes, all you need to do manually is generate a new token every 30 days and replace it.