Set up Twitch EventSub to receive AutoMod message hold and approve events

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. Obtain a user access token with moderator:manage:automod scope for both the broadcaster and the moderator acting on held messages
  2. Subscribe to the channel.chat.message_held EventSub subscription type via POST to https://api.twitch.tv/helix/eventsub/subscriptions, specifying your webhook callback URL or WebSocket session ID
  3. When your server receives an event notification for a held message, inspect the payload for the message ID, sender user ID, and the message text
  4. To approve a held message, POST to https://api.twitch.tv/helix/moderation/automod/message with action=ALLOW and the message_id; to deny it, use action=DENY
  5. Respond to Twitch's webhook challenge during subscription creation with the challenge string to complete verification; failure to respond within the required window causes the subscription to fail

Known gotchas

Related routes

Set up Twitch EventSub webhooks to receive channel events
twitch · 6 steps · unrated
Get and update Twitch AutoMod settings for a channel
dev.twitch.tv · 5 steps · unrated
Subscribe to Twitch EventSub events via WebSocket transport for real-time in-game notifications
dev.twitch.tv · 6 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