Nifty 50
Tools & Calculators
Stocks
F&O
Mutual Funds
By HDFC SKY | Published at: Aug 6, 2026 03:45 PM IST

To connect your application with HDFC SKY APIs, you first need an API Key and an Access Token. These credentials allow your application to communicate securely with the HDFC SKY platform. Although the process may seem technical, it becomes straightforward when broken down into simple steps. This guide explains how to generate your API credentials, what each credential does, and how they work together to enable secure API access.
Before you begin, it is helpful to understand the purpose of each credential. Together, they establish a secure connection between your application and the HDFC SKY platform.
The API Key is a unique identifier assigned to your algorithmic trading application when you create it on the HDFC SKY Developer Portal. It identifies your application whenever it sends a request to the platform.
The API Secret is generated along with the API Key. It verifies your application’s identity during the authentication process. Since it acts as a confidential credential, you should keep it secure and avoid sharing it with others.
The Request Token is a temporary credential generated after the user successfully logs in and authorises the application. It is used to generate the Access Token and cannot be used to access APIs directly.
The Access Token is generated after the Request Token is successfully validated. It authorises your application to access the HDFC SKY APIs that the user has approved during authentication. Include the Access Token in the HTTP Authorisation header when making authorised API requests.
Each credential serves a different purpose during the authentication process. The API Key identifies your application, while the API Secret verifies its identity. The Request Token confirms that the user has successfully authenticated and authorised the application. Finally, the Access Token allows your application to securely access the authorised HDFC SKY APIs.
Together, these credentials help ensure that only authorised applications can interact with a user’s trading account.
Before generating your API key and access token, make sure you have the following:
Having these details ready will help you complete the setup without interruptions.
Follow the steps below to generate your credentials.
Visit the HDFC SKY Developer Portal and click Login. Sign in using your HDFC SKY Client ID, registered email address, or mobile number.
After entering your credentials, verify your identity using the One-Time Password (OTP) sent to your registered mobile number or email address. Once verification is complete, you will be logged in to the developer dashboard.
After logging in, click My Apps from the top navigation menu. Next, click the + Create button to open the application registration form.
You will need to provide a few details, including:
Review the information carefully before submitting the form. Once everything is complete, click Create.
After creating the application, return to the My Apps page. Check that the application status shows Active.
You can now view and copy your:
Store these credentials securely. Your application will use them whenever it communicates with HDFC SKY. Do not share these credentials publicly or include them in client-side code.
The next step is to authenticate the user. Open your browser or redirect users to the HDFC SKY login page using your API key. Users must log in using their HDFC SKY trading credentials.
After logging in, they need to complete the required two-factor authentication (2FA) process. Once authentication is successful, users must accept the required authorisation request.
After approval, HDFC SKY redirects the user to the registered redirect URL. The redirect URL contains the Request Token as one of its parameters. Your application should capture and securely store this request token for the next step.
The request token cannot be used directly to access APIs. Instead, your server must send a request to the HDFC SKY access token endpoint. The request should include:
If the request is successful, HDFC SKY returns a JSON response containing the access token. Your application should extract and securely store this access token.
Once generated, include the access token in the Authorisation header of every API request. This token allows your application to:
Without a valid access token, API requests will not be authenticated.
Before generating your API credentials, keep the following points in mind:
Following these steps will help you complete the authentication process smoothly.
Generating your HDFC SKY API Key and Access Token is the first step towards integrating your application with HDFC SKY APIs. By understanding the purpose of each credential and following the authentication process carefully, you can establish a secure connection between your application and the platform. Once the setup is complete, your application can securely access the APIs that the user has authorised.
By signing up I certify terms, conditions & privacy policy