Post a colored chat announcement to a Twitch channel from a moderator bot

domain: dev.twitch.tv · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to https://api.twitch.tv/helix/chat/announcements with broadcaster_id and moderator_id query parameters
  2. Include a JSON body with a message field and an optional color field (e.g., "purple") to set the announcement's highlight color
  3. Authenticate with a token that has moderator privileges for the target broadcaster, since the endpoint requires both a broadcaster and acting moderator ID
  4. Respect the rate limit of one announcement every 2 seconds when sending multiple announcements in sequence
  5. Account for Shared Chat sessions: an App Access Token only delivers the announcement to the source channel, not to every channel in the shared session

Known gotchas

Related routes

Set up Twitch EventSub to receive AutoMod message hold and approve events
dev.twitch.tv · 5 steps · unrated
Send a Twitch whisper from a bot account and handle the platform's whisper rate limits and silent-drop behavior
dev.twitch.tv · 5 steps · unrated
Get and update Twitch AutoMod settings for a channel
dev.twitch.tv · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans