---
title: How to generate the API Key on Dhan Platform for API's ? | Dhan Support
url: https://dhan.co/support/platforms/dhanhq-api/how-to-generate-the-api-key-on-dhan-platform-for-api-s/
page_type: support_answer
last_updated: 2026-11-23
---

# How to generate the API Key on Dhan Platform for API's ?

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.
