Auto Renew Access Token ID

Hi Support Team,
is there any way to check if access token is expired?
Also, there is way to auto generate access token from code itself if expired?

Thanks!

Hi @cjai, you can view the Time to Expiry of your token by navigating to Dhan Web > Profile > Access Dhan HQ APIs, where the token expiry details are displayed. The token validity can be set for up to 30 days.

Please note that auto-generation of the access token through code is not supported at the moment. However, we have noted your suggestion for future consideration.

1 Like

@cjai

There are browser automation tools available like selenium that can login and do actions in your account and extract content from your account. You can consider using such at tool to accomplish the task at hand.

1 Like