DhanHQ API
Access Data and Trading via APIs
We would like to inform you that the validity of the API Access Token has now been updated to 24 hours. This change has been implemented in accordance with the latest guidelines and regulatory requirements prescribed by the exchanges and market regulators.
Additionally, if you prefer to automate the token generation process, you can make use of the API Key & Secret authentication flow. This allows your application to generate a fresh access token programmatically without requiring manual intervention each day. The generated access token will remain valid for 24 hours.
You may refer to the authentication documentation for the implementation flow: DhanHQ Authentication Documentation
Related FAQs

