loader2
Login Open ICICI 3-in-1 Account
  • Text Size
  • Text to Speech
  • Color Contrast
  • Pause Animations

Open ICICI
3-in-1 Account

Manage your Savings, Demat and Trading Account conveniently at one place

+91

What is a Session Key and how to generate it for using Breeze API?

A session key is a temporary key that is only used once, during one stretch of time, for encrypting and decrypting data. This is similar to One Time Passwords (OTP) that have to be generated once in the morning to login, and help in encrypting a communication session for each app separately. This key or token expires in 24 hours after generation or at midnight.

How can you generate your Session Key?

1. Login with your ICICIdirect Account onhttps://api.icicidirect.com/apiuser/home and then navigate to ‘View Apps’ tab.   

2. Click on ‘Login’ in front of the App name you want to generate the session key for: 

3. You will be redirected to a new webpage. On this page click on the three dots on the upper right section of the screen, select “More tools option>>Developer tools”. 

 4. Select “Network tab” from the tabs appearing in the upper section and then “Payload tab” within Network tab on the section on the left side.

 

 5. Now enter your credentials, generate OTP and login into your account

 

6. After successfully logging in, the following page will be visible on your screen. You can locate your session key here at two places:

1)  As the end part of the URL in the address bar

2)  In the API Session option, on the left side of the window.

After completing the above process, you have successfully generated the Session Key, which can be used to start using all features of Breeze API. Please note that session key is valid for 24hrs or before midnight, whichever is earlier. You will have to generate a new session key for the next trading day. Though registering an App is not required for every trading session, make sure the status of your App is active before you generate session key for it.

Congratulations, you can start coding your strategy on an IDE (Jupyter, Spyder etc.) now! 

nSxdbrWX3bY

How to generate session key | Getting started with Breeze API ICICI Direct