Skip to main content

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

ParameterTypeRequiredDescription
room_idstringYesTarget room ID
textstringYesChat message text

Response

{ "status_code": 0, "data": { "status_code": 0 } }

Examples

const res = await fetch('https://api.tik.tools/webcast/chat?apiKey=YOUR_KEY', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-cookie-header': 'sessionid=YOUR_TIKTOK_COOKIES'
  },
  body: JSON.stringify({ room_id: '7123456789', text: 'Hello!' })
});
console.log(await res.json());