Where to find the subscription params for drop.entitlement.grant?

I test subscription type for drop.entitlement.grant ,and follow the EventSub Subscription Types | Twitch Developers

1.where to find the condition params :

organization_id string yes The organization ID of the organization that owns the game on the developer portal.
category_id string no The category (or game) ID of the game for which entitlement notifications will be received.
campaign_id string no The campaign ID for a specific campaign for which entitlement notifications will be received.

2.where to find the ip of twitch server? we need config the ip of twitch in whitelist

The organization_id can be found by going to your org dashboard in the TwitchDev Console, the ID is in the URL eg https://dev.twitch.tv/org/ORGANIZATION_ID/console.

The category_id is the id of your game, you can find this by using the Get Games endpoint, or you can go through the Org dashboard, select the game and again the category_id will be in the URL, eg https://dev.twitch.tv/org/ORGANIZATION_ID/console/games/CATEGORY_ID/boxart

As for campaign_id, again, it’s in your Org dashboard on the Drops page there’s a table of campaigns and one of the columns is the Campaign ID.

2.where to find the ip of twitch server? we need config the ip of twitch in whitelist

That’s not documented anywhere. Twitch use AWS currently so it could potentially be any IP from the pool that AWS use, it’s not static and could change at any time.

1 Like

thanks

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