Login
Authorize
Initiate the OAuth 2.0 authorization flow for Upstox API users. Redirect users to the login dialog and obtain an authorization code for token exchange.
Analytics Token
Learn how to generate an Analytics Token for read-only access to market data, holdings, positions, and historical candle data via Upstox APIs.
Get Token
Exchange an authorization code for an access token using the Upstox API. Obtain the opaque token and user profile data in a single authenticated response.
Access Token Request
Request an access token for a user via the Upstox API webhook endpoint. The user approves the token generation and you receive credentials automatically.
Logout
Log out an authenticated user and invalidate the session using the Upstox API. Terminate active access tokens and end the user session securely with endpoint.
You also have the option to select TOTP (Time-based One-Time Password) as a more secure method for 2FA, compared to the usual SMS OTP, for a safer login. Learn more about activating TOTP on your Upstox account here.