DhanHQ API
Access Data and Trading via APIs
Your API Key is generated through the Dhan Web platform and is used to authenticate your application when accessing DhanHQ APIs.
To generate or view your API Key:
Log in to Dhan Web.
Navigate to My Profile.
Click on Get Trading & Data APIs.
Use the toggle button to switch from Access Token to API Key.
Enter the required details:
App Name
Redirect URL
Postback URL (optional)
Click on Generate API Key.
Once generated, you will receive an API Key and API Secret, which remain valid for 12 months.
Please be informed that using the API Key and Secret you cannot make any API Call's. However, you first have to generate the access token using the API Key & Secret and then you make the API Call's using that.
Related FAQs

