Click "Create Token" to initiate the Zerodha OAuth login flow.
Create Access Token
Authenticate with Zerodha via OAuth 2.0
1
Initiate OAuth
Click button → API fetches login URL
→
2
Zerodha Login
Enter credentials + 2FA TOTP code
→
3
Callback & Save
Token exchanged & saved to database
Create Token
You'll be redirected to kite.zerodha.com to complete login
About Token Lifecycle
Important notes about Zerodha sessions
- Zerodha access tokens expire daily at 6:00 AM IST. Regenerate every trading day.
- The token is saved to the PostgreSQL database and picked up automatically by the Worker service.
-
The Callback URL must be registered in Zerodha's Developer Console:
https://localhost:44370/api/zerodha/callback -
Use Headless Login via the API endpoint
POST /api/zerodha/headless-loginto skip manual browser login using TOTP automation.