Pirate Tok
POST/webcast/room/chat/

Webcast Room Chat

Purpose

Post a live-room chat message on the web webcast surface.

Endpoint

  • host: webcast.tiktok.com
  • method: POST
  • path: /webcast/room/chat/

Query Parameters Seen In Captured Requests

  • aid=1988
  • app_language=en
  • app_name=tiktok_web
  • browser_language=en-US
  • browser_name=Mozilla
  • browser_online=true
  • browser_platform=Linux x86_64
  • browser_version=5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
  • channel=tiktok_web
  • client_start_timestamp_millisecond
  • cookie_enabled=true
  • data_collection_enabled=true
  • device_id
  • device_platform=web_pc
  • emotes_with_index=
  • focus_state=true
  • from_page=
  • history_len=2
  • input_type=0
  • is_fullscreen=false
  • is_page_visible=true
  • os=linux
  • priority_region=RO
  • referer=
  • region=RO
  • room_id
  • screen_height=1080
  • screen_width=1920
  • tz_name=Europe/Bucharest
  • user_is_login=true
  • webcast_language=en
  • msToken
  • X-Bogus
  • X-Gnarly

Headers Seen In The Capture

  • Accept: */*
  • Accept-Language: en-US,en;q=0.9
  • Content-Type: application/json; charset=UTF-8
  • Origin: https://www.tiktok.com
  • Referer: https://www.tiktok.com/
  • Sec-Fetch-Dest: empty
  • Sec-Fetch-Mode: cors
  • Sec-Fetch-Site: same-site
  • User-Agent
  • Cookie
  • x-secsdk-csrf-token
  • several tt-ticket-guard-* headers

Request Body Seen In The Capture

Json
{
  "room_id": "{identifier}",
  "content": "frumos",
  "emotes_with_index": "",
  "input_type": 0,
  "client_start_timestamp_millisecond": 1774368350009
}

Another captured example differs only in content and timestamp.

Response Shape Seen In A Successful Capture

Top-level fields observed:

  • data.content
  • data.content_language
  • data.fullscreen_text_color
  • data.id
  • data.msg_id
  • data.msg_id_str
  • data.user
  • data.user_identity
  • extra.now
  • status_code

Prominent nested data.user fields observed:

  • display_id
  • nickname
  • id
  • id_str
  • sec_uid
  • avatar_large.url_list[]
  • avatar_thumb.url_list[]
  • follow_info.follow_status
  • follow_info.follower_count
  • follow_info.following_count
  • verified
  • user_attr.is_admin
  • user_attr.is_muted

Prominent nested data.user_identity flags observed:

  • is_anchor
  • is_follower_of_anchor
  • is_gift_giver_of_anchor
  • is_moderator_of_anchor
  • is_mutual_following_with_anchor
  • is_subscriber_of_anchor

Observed successful response status:

  • status_code=0

Observed responses show server-side language labeling changing with message content:

  • "La multi ani" -> content_language="it"
  • "frumos" -> content_language="ro"

Authentication Errors

Documented error responses include:

  • data.message = "User doesn't login"
  • data.prompts = "Please login first"
  • status_code = 20003

Current Interpretation

This is a fully signed, session-bound action surface. The captures strongly suggest it depends on a real logged-in browser session, CSRF state, and ticket-guard headers, unlike the public unsigned discovery endpoints.