You need to echo the challenge back to twitch.
And then Twitch will send you webhooks as they happen.
As per the docs: https://dev.twitch.tv/docs/api/webhooks-guide/
- Make subscription request
- Twitch then sends to your end point:
EG:
GET https://yourwebsite.com/path/to/callback/handler?
hub.mode=subscribe&
hub.topic=https://api.twitch.tv/helix/users/follows?to_id=1337&
hub.lease_seconds=864000&
hub.challenge=HzSGH_h04Cgl6VbDJm7IyXSNSlrhaLvBi9eft3bw
Then you take the hub.challenge and send a body response of the hub.challenge value
in PHP for example:
<?php
echo $_GET['hub.challenge'];
(Bad example do not use in production™
Then, Twitch will send you events when they happen