Skip to main content
Trade API (64)

How long is an access token valid? Why does it stop working every morning?

Tokens expire at 06:00 IST every day, and your key's daily approval ends at the same time. This is a SEBI and exchange requirement for API trading, so it can't be extended. There are no refresh tokens.

A token created late in the night won't last long. One created at 05:00 expires at 06:00 the same morning.

Each morning, log in to web.SAHI.com, approve your key and generate a new token.