POST /webcast/chat
Send a chat message to an active TikTok live stream room on behalf of an authenticated user. Requires valid TikTok session cookies — the message is sent as the logged-in user.
Authentication required: You must include TikTok session cookies via the x-cookie-header header. Get your sessionid from browser DevTools → Application → Cookies → tiktok.com.
How it works: The API signs the chat request with X-Bogus, attaches your session cookies, and sends the message to TikTok’s chat endpoint. The message appears in the live room as if you typed it in the TikTok app.
Rate limiting: TikTok enforces internal chat rate limits (~1 message per 2 seconds). Sending too fast may result in temporary chat mutes. The API returns status_code: 0 on success.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Target room ID |
text | string | Yes | Chat message text |