The payload matches what the response is under helix API which is data:[]
as per the webhooks specification.
But, there are a couple of options, you can parse one of the headers:
Or more usefully, is to setup, so that your callback URL is:
For the hook
Which would result in you setting your Callback URL to
Then just parse the URL for the parameters you need. Which is child’s play under nodeJS Express.
request.route('/twitchwebhooks/:hook/:id', function(req, resp) {
switch (req.params.hook) {
case 'streams':
// snip