WebSocket 401 Unauthorized – Valid REST token fails handshake

Hi team,

I’ve successfully authenticated via OAuth (v2 API) and verified that my REST token works (200 status on /user/profile).

However, every WebSocket connection attempt to `wss://api.upstox.com/v2/feed/market-data` returns:

:cross_mark: Handshake status 401 Unauthorized

I’ve confirmed the token, headers, and client credentials are correct. REST APIs work fine.

Could someone from the API engineering team please verify whether feed authorization requires a separate token or parameter update?

Thanks,

Client ID: 72BDKJ

Hi @UJJWAL_27556023 You’ll need to use the V3 WebSocket, V2 WebSocket was deprecated —please check the announcements below

Thanks