Webhooks will use
- the time you specify
UNLESS
- the access token used to create the subscription has less time left than what you asked for
So, if you use a token with an hour left on it
And ask for 10 days
You get an hour.
TLDR: Webhooks use what you ask for, unless, the token has less time left than you asked for
A user access token last for four hours.
So if you ask for 10 days, you’ll get four hours (or what is left on the token)
So you have to resubscribe to the subscriptions webhook every four hours. (after of course refreshing the token)
When you create the subscription to the topic, the API will return the actual time/lease_seconds that is used, and you can use the active webhooks endpoint to check
https://dev.twitch.tv/docs/api/webhooks-reference#subscribe-tounsubscribe-from-events