Kite Access Token Management
Generate & Re-Generate Kite Connect v3 Access Token via Zerodha Login Redirect
🔍
Time Remaining Until 6:00 AM Next Day
Client ID đŸĒ Zerodha
ZD8434
Kite Connect User ID
Token Created At 📅 Timestamp
—
Session start time
Expires At (Rule) ⏰ Next Day 6:00 AM
—
Strictly valid until 6:00 AM next day (IST)
Active Access Token 🔑 Masked
â€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸâ€ĸ
In-memory & persisted in account.json
đŸĒ 1-Click Generate Kite Access Token via Zerodha Login
Per official Kite Connect documentation (kite.trade/docs/connect/v3/user/), user authentication requires logging in through Zerodha's login portal. Clicking the button below opens the Zerodha Kite login interface. Upon successful login, you will receive a request_token to exchange for your daily access token.
OFFICIAL ZERODHA LOGIN URL:
https://kite.zerodha.com/connect/login?v=3&api_key=...
🔄 Dedicated Redirect Page: /KiteCallbackUrl
Redirect URL

In your Zerodha Developer Console (developers.kite.trade), set your Redirect URL to http://localhost:3000/KiteCallbackUrl. Upon login, Zerodha returns to this page where the request_token is saved in the database (Account & kite_callbacks) and converted into an Access Token valid until 6:00 AM next day.

⚡ Open KiteCallbackUrl Page
🔑 Exchange Request Token for Access Token
Kite Session API

After logging in at Zerodha, you are redirected with a URL containing ?request_token=XXXXX. Paste that request_token here to complete the SHA-256 session exchange and activate your access token immediately.

Tip: If Zerodha redirected to this page or localhost, it will automatically populate this field!
âš™ī¸ Direct Access Token / API Key Settings
Advanced Admin
Saving a manual token will set Created At to now and calculate Expiry at 6:00 AM next day (IST).
📡 Connection Diagnostics
Click Run Test Now to verify if the active access token successfully authenticates with Zerodha Kite Connect servers (api.kite.trade/user/profile).
âąī¸ Token Validity Lifecycle Rule
Strict Rule
  • 1
    Daily Expiration at 6:00 AM: Regardless of when a token is generated, it remains valid strictly until 6:00 AM next day (06:00:00 IST).
  • 2
    When Token Expires: The system automatically flags the session as EXPIRED and provides a 1-click button to re-generate the token via:
    https://kite.zerodha.com/connect/login?v=3&api_key=xxx
  • 3
    Persistent Storage: The active token, created timestamp, and calculated expiry are saved in account.json and the backend database table Account.
📚 Official Kite Documentation
Official Docs ↗

The Kite Connect User Authentication Flow follows these steps:

  1. Redirect user to Kite login URL with api_key.
  2. User logs in with 2FA; Zerodha redirects back with request_token.
  3. Exchange request_token using SHA256(api_key + request_token + api_secret) for the session access_token.

Reference: https://kite.trade/docs/connect/v3/user/