BlogTwitch EventSub Webhooks

How to Test Twitch EventSub Webhooks

Twitch EventSub transports deliver real-time notifications for channel points, hype trains, and moderation events via webhooks.

Twitch EventSub Official Webhook Docs

1. Twitch EventSub Webhook Events

Twitch EventSub can send the following webhook events to your endpoint:

channel.channel_points_custom_reward_redemption.add
channel.hype_train.begin
channel.hype_train.end
channel.ban
channel.unban
channel.moderator.add

2. Set Up a Test Endpoint with HookRay

Follow these steps to start receiving Twitch EventSub webhooks for testing:

  1. Go to HookRay and click "Start Testing — Free" to get your unique webhook URL.
  2. Copy the URL (e.g., https://h.hookray.com/abc123).
  3. In your Twitch EventSub dashboard, navigate to the webhook settings and paste the HookRay URL as your endpoint.
  4. Select the events you want to receive (see list above).
  5. Trigger a test event — HookRay will show the incoming webhook in real-time.

3. Sample Twitch EventSub Webhook Payload

Here's an example of what a Twitch EventSub webhook payload looks like:

payload.json
{
  "subscription": {
    "id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c5",
    "type": "channel.channel_points_custom_reward_redemption.add",
    "version": "1"
  },
  "event": {
    "broadcaster_user_id": "12345",
    "broadcaster_user_name": "StreamerPro",
    "user_id": "67890",
    "user_name": "Viewer123",
    "reward": {
      "id": "reward_001",
      "title": "Highlight My Message",
      "cost": 500
    },
    "redeemed_at": "2026-03-20T19:00:00.000Z"
  }
}

4. Common Issues & Troubleshooting

Webhook not arriving?

Check that your endpoint URL is correct and publicly accessible. Twitch EventSub cannot reach localhost URLs — use HookRay's cloud URL instead.

Getting 400 or 500 errors?

HookRay accepts any payload and returns 200 OK by default, so the issue is likely on Twitch EventSub's side. Check your webhook configuration and event selection.

Need to verify webhook signatures?

Twitch EventSub signs webhook requests for security. Use HookRay to capture the raw headers and body, then implement signature verification in your application code.

5. Next Steps

  • Use HookRay's webhook replay feature to re-send captured webhooks while building your handler
  • Enable smart parsing (Pro plan) to see Twitch EventSub-specific fields highlighted automatically
  • Check the Twitch EventSub webhook documentation for the complete event reference

Ready to test Twitch EventSub webhooks?

Get a free webhook URL in 5 seconds. No signup required.

Start Testing Twitch EventSub Webhooks — Free