# Subscribing to webhook not working

**URL:** <https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034>\
**Category:** API\
**Created:** [February 14, 2019, 8:09pm UTC](https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034 "2019-02-14T20:09:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anfal\_Mushtaq](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/anfal_mushtaq/32/5805_2.png) [@Anfal\_Mushtaq](https://discuss.dev.twitch.com/u/Anfal_Mushtaq)\
**Post date:** [February 14, 2019, 8:09pm UTC](https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034/1 "2019-02-14T20:09:24Z")

</div>

Hi,

I am trying to subscribe to user follows topic and Twitch is sending back the message to confirm my subscription. Following is the twitch communication to my server.

{“hub\_challenge”:“0sh4OT5dIkgL57xAX84vfabxwk89BZKU\_MupaRJX”,“hub\_lease\_seconds”:“864000”,“hub\_mode”:“subscribe”,“hub\_topic”:“[https://api.twitch.tv/helix/users/follows?first=1&to\_id=45921770](https://api.twitch.tv/helix/users/follows?first=1&to_id=45921770)”}

I then tried to see my subscriptions using [https://api.twitch.tv/helix/webhooks/subscriptions](https://api.twitch.tv/helix/webhooks/subscriptions) and it shows 0 subscriptions and I tried to follow a channel as well but I am not getting any callback.

One thing confusing for me was twitch confirms the subscription on GET version of callback and sends POST version of callback when the event happens, so I have both in my controller (Same URL different method).

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [February 14, 2019, 8:36pm UTC](https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034/2 "2019-02-14T20:36:48Z")

</div>

That message isn’t Twitch confirming the subscription, it’s the Subscription Verify Request (as shown in this example of the webhook subscription flow [https://dev.twitch.tv/docs/api/webhooks-reference/#example-of-webhook-flow](https://dev.twitch.tv/docs/api/webhooks-reference/#example-of-webhook-flow))

That verification is to check that your callback is accessible, you need to respond back with the `hub_challenge` to confirm the subscription.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 15, 2019, 10:13am UTC](https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034/3 "2019-02-15T10:13:04Z")

</div>

> [@Anfal\_Mushtaq](#):
>
> One thing confusing for me was twitch confirms the subscription on GET version of callback and sends POST version of callback when the event happens, so I have both in my controller (Same URL different method).

This is standard, as per the WebSub spec, which is what Twitch helped write and as documented…

GET is for verification responses and POST is for “actual” data.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [March 17, 2019, 10:13am UTC](https://discuss.dev.twitch.com/t/subscribing-to-webhook-not-working/20034/4 "2019-03-17T10:13:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
