# Webhook subscription limit

**URL:** <https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808>\
**Category:** API\
**Created:** [October 12, 2019, 8:13am UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808 "2019-10-12T08:13:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForgetTempo](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@ForgetTempo](https://discuss.dev.twitch.com/u/ForgetTempo)\
**Post date:** [October 12, 2019, 8:13am UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/1 "2019-10-12T08:13:55Z")

</div>

Hello,

I got a very strange behaviour when using the subscribe webhook endpoints:

I use this endpoint with a bearer token to subscribe to webhooks: [https://api.twitch.tv/helix/webhooks/hub](https://api.twitch.tv/helix/webhooks/hub)

After around ~9090 successful webhook subscriptions i get the message: “hub.reason”:“exceeded maximum number of allowed subscriptions”

I checked my webhooks via this endpoint: [https://api.twitch.tv/helix/webhooks/subscriptions](https://api.twitch.tv/helix/webhooks/subscriptions) then unsubscribed all webhooks I got.

Now i tried to sub the webhooks again and after around 9090 i again got the above error message.

Anyone has a clue what the reason could be, I would understand it if the number would be 10.000 but not 9090ish.

Would appreciate any help!

---

<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:** [October 12, 2019, 11:30am UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/2 "2019-10-12T11:30:47Z")

</div>

> [@ForgetTempo](#):
>
> After around ~9090 successful webhook subscriptions i get the message: “hub.reason”:“exceeded maximum number of allowed subscriptions”

Sounds like you may have attempted to subscribe to the same topic three times? And it might be tripping that instead. Either way getting that close to the limit sound like you probably want to apply for a higher limit anyway.

---

<div class="post-metadata">

**Author:** ![ForgetTempo](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@ForgetTempo](https://discuss.dev.twitch.com/u/ForgetTempo)\
**Post date:** [October 12, 2019, 12:08pm UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/3 "2019-10-12T12:08:10Z")

</div>

yes for testing i was most likely subscribing the same topic multiple times, but I thought that u can not subscribe one topic morgen than once (basically my understanding is it overwrites another subscription if u sub a topic multiple times)? If this is the problem, how can I erase multiple subscriptions?

Im using a client id and secret where the apllication for higher limits was done and I was told i can sub 100.000 webhooks now.

---

<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:** [October 12, 2019, 12:12pm UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/4 "2019-10-12T12:12:47Z")

</div>

[https://dev.twitch.tv/docs/api/webhooks-reference#subscribe-tounsubscribe-from-events](https://dev.twitch.tv/docs/api/webhooks-reference#subscribe-tounsubscribe-from-events)

The request to unsubscribe is the same as subscribe. But with `hub.mode` as `unsubscribe`

For testing use a lower lease limit to save stale subs being left about.

> [@ForgetTempo](#):
>
> but I thought that u can not subscribe one topic morgen than once (basically my understanding is it overwrites another subscription if u sub a topic multiple times)

That should be correct. If the Topic and Callback are the same, it should extend.

> [@ForgetTempo](#):
>
> Im using a client id and secret where the apllication for higher limits was done and I was told i can sub 100.000 webhooks now.

Well if your limit is 100k then you shouldn’t be hitting the 10k limit anyway

---

<div class="post-metadata">

**Author:** ![ForgetTempo](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@ForgetTempo](https://discuss.dev.twitch.com/u/ForgetTempo)\
**Post date:** [October 12, 2019, 12:26pm UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/5 "2019-10-12T12:26:03Z")

</div>

> [@BarryCarlyon](#):
>
> That should be correct. If the Topic and Callback are the same, it should extend.

The topic and callback are the same.

> [@BarryCarlyon](#):
>
> Well if your limit is 100k then you shouldn’t be hitting the 10k limit anyway

Yes this is the strange thing, yesterday my test was to unsubscribe all the webhooks I found via [https://api.twitch.tv/helix/webhooks/subscriptions](https://api.twitch.tv/helix/webhooks/subscriptions)

I left the api still working without any webhooks, no events were triggered which basically means that there are no webhooks with this callback any more. Today I tried to subscribe my needed webhooks again and got the above mentioned error message after 9097 webhooks. I actually have no explanation for this.

---

<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:** [November 11, 2019, 12:26pm UTC](https://discuss.dev.twitch.com/t/webhook-subscription-limit/22808/6 "2019-11-11T12:26:05Z")

</div>

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