Pirate Tok
Docs/TikTok protocol/Connection & authentication/TTWID Alone Is Sufficient For Web WSS
verifiedhigh

TTWID Alone Is Sufficient For Web WSS

Claim

A fresh ttwid cookie from anonymous GET https://www.tiktok.com/ is sufficient to complete the web live websocket handshake for a live room. Session cookies, msToken, and valid X-Bogus are not required for that direct WSS path.

Status

  • certainty: verified
  • confidence: high

Key Handshake Outcomes

  • success: HTTP 101 Switching Protocols
  • missing ttwid: HTTP 200, Handshake-Msg: named cookie not present, Handshake-Status: 417
  • blocked ttwid: HTTP 200, Handshake-Msg: DEVICE_BLOCKED, Handshake-Status: 415
  • missing required WSS params such as ws_direct=1 or sup_ws_ds_opt=1: HTTP 200, Handshake-Msg: illegal secret key, Handshake-Status: 417