{"id":"a9f96208-e8b4-46da-88d5-6b7982fb54a8","task":"Subscribe to Twitch EventSub stream.online webhook event","domain":"dev.twitch.tv","steps":["Ensure your server has a publicly reachable HTTPS endpoint that can receive POST requests and respond with the challenge value during subscription verification.","Obtain an app access token via the client credentials flow.","Send a POST request to the EventSub subscriptions endpoint (/helix/eventsub/subscriptions) with a JSON body specifying type=stream.online, version, condition (with broadcaster_user_id), and transport (method=webhook, callback URL, secret).","Include Authorization and Client-Id headers on the POST request.","When Twitch sends a verification request to your callback URL (identified by the Twitch-Eventsub-Message-Type: webhook_callback_verification header), respond with HTTP 200 and the challenge string from the request body as plain text.","For incoming event notifications, validate the HMAC signature in the Twitch-Eventsub-Message-Signature header using your subscription secret before processing the payload."],"gotchas":["Twitch will retry delivery if your callback does not respond with 2xx within a few seconds; ensure your handler is fast and idempotent.","Subscriptions expire or are removed if the callback URL repeatedly fails to respond; implement monitoring to detect dropped subscriptions.","The HMAC signature is computed over a concatenation of the message ID, timestamp, and raw body — verify using the raw (unparsed) request body bytes."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:23.292Z"},"url":"https://mcp.waymark.network/r/a9f96208-e8b4-46da-88d5-6b7982fb54a8"}