Channel Ad Break Begin
The channel.ad_break.begin subscription type sends a notification when a user runs a midroll commercial break, either manually or automatically via ads manager.
Subscription
- Type
channel.ad_break.begin- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:ads scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:ads scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.ad_break.begin.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to get Channel Ad Break begin notifications for. Maximum: 1
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to get Channel Ad Break begin notifications for. Maximum: 1
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.duration_secondsIntegerThe length of the ad break, in seconds. This can differ from the length that was requested; for example, Twitch shortens a request that's longer than the maximum allowed for the channel.event.started_atStringThe UTC date and time (in RFC3339 format) of when the ad break began. This can be several seconds after the ad break was requested, and viewers may start seeing ads later than this time.event.is_automaticBooleanIndicates if the ad was automatically scheduled via Ads Managerevent.broadcaster_user_idStringThe broadcaster's user ID for the channel the ad was run on.event.broadcaster_user_loginStringThe broadcaster's user login for the channel the ad was run on.event.broadcaster_user_nameStringThe broadcaster's user display name for the channel the ad was run on.event.requester_user_idStringThe ID of the user that requested the ad. For automatic ads, this is the ID of the broadcaster. If the ad break was synchronized from another channel during a co-streamed event, this is the ID of the channel that ran the original ad break, andis_automaticreflects that ad break.event.requester_user_loginStringThe login of the user that requested the ad.event.requester_user_nameStringThe display name of the user that requested the ad.
{
"type": "channel.ad_break.begin",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.ad_break.begin",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.ad_break.begin",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.ad_break.begin",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"duration_seconds": 60,
"started_at": "2019-11-16T10:11:12.634234626Z",
"is_automatic": false,
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cool_user",
"broadcaster_user_name": "Cool_User",
"requester_user_id": "1337",
"requester_user_login": "cool_user",
"requester_user_name": "Cool_User"
}
}Channel Bits Use
The channel.bits.use subscription type sends a notification whenever Bits are used on a channel.
This event is designed to be an all-purpose event for when Bits are used in a channel and might be updated in the future as more Twitch features use Bits.
Currently, this event will be sent when a user:
- Cheers
- Uses a Power-up
- Will not emit when a streamer uses a Power-up for free in their own channel.
- Uses a Custom Power-Up
- Will not emit when a streamer uses a Power-up for free in their own channel.
Bits transactions via Twitch Extensions are not included in this subscription type.
Subscription
- Type
channel.bits.use- Version
1
Authorization
Requires one of the following:
- A user access token that includes the bits:read scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The bits:read scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.bits.use.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe user ID of the channel broadcaster. Maximum: 1.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe user ID of the channel broadcaster. Maximum: 1.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.broadcaster_user_idStringThe User ID of the channel where the Bits were redeemed.event.broadcaster_user_loginStringThe login of the channel where the Bits were used.event.broadcaster_user_nameStringThe display name of the channel where the Bits were used.event.user_idStringThe User ID of the redeeming user.event.user_loginStringThe login name of the redeeming user.event.user_nameStringThe display name of the redeeming user.event.bitsIntegerThe number of Bits used.event.typeStringPossible values
cheerpower_upcustom_power_up
event.messageObjectAn object that contains the user message and emote information needed to recreate the message. If the user didn't include a message,textis an empty string. For example, On-Screen Celebration Power-ups and Custom Power-ups that don't require user input never include one.Hide child attributesShow child attributes
event.message.textStringThe chat message in plain text.event.message.fragmentsObject[]The ordered list of chat message fragments.Hide child attributesShow child attributes
event.message.fragments.textStringThe message text in fragment.event.message.fragments.typeStringThe type of message fragment.Possible values
textcheermoteemote
event.message.fragments.emoteObjectNullableThe metadata pertaining to the emote.Hide child attributesShow child attributes
event.message.fragments.emote.idStringThe ID that uniquely identifies this emote.event.message.fragments.emote.emote_set_idStringThe ID that identifies the emote set that the emote belongs to.event.message.fragments.emote.owner_idStringThe ID of the broadcaster who owns the emote.event.message.fragments.emote.formatString[]The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated.Possible values
animatedAn animated GIF is available for this emote.staticA static PNG file is available for this emote.
event.message.fragments.cheermoteObjectNullableThe metadata pertaining to the cheermote.Hide child attributesShow child attributes
event.message.fragments.cheermote.prefixStringThe name portion of the Cheermote string that you use in chat to cheer Bits, converted to lowercase. The full Cheermote string is the concatenation of {prefix} + {number of Bits}.
For example, if the prefix is "cheer" and you want to cheer 100 Bits, the full Cheermote string is cheer100. When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered.
event.message.fragments.cheermote.bitsIntegerThe amount of Bits cheered.event.message.fragments.cheermote.tierIntegerThe minimum number of Bits for the Cheermote tier that the cheer reached. For example, if a Cheermote's tiers start at 1, 100, 1000, 5000 and 10000 Bits, cheer150 has atierof 100. It matches the tieridin Get Cheermotes.
event.power_upObjectNullableData about a default (i.e. built-in) Power-up.Hide child attributesShow child attributes
event.power_up.typeStringPossible values
message_effectcelebrationgigantify_an_emote
event.power_up.emoteObjectNullableEmote associated with the reward.Hide child attributesShow child attributes
event.power_up.emote.idStringThe ID that uniquely identifies this emote.event.power_up.emote.nameStringThe human readable emote token.
event.power_up.message_effect_idStringNullableThe ID of the message effect.
event.custom_power_upObjectNullableData about a Custom Power-up.Hide child attributesShow child attributes
event.custom_power_up.titleStringThe title of the Custom Power-up.event.custom_power_up.reward_idStringThe ID of the Custom Power-up.
{
"type": "channel.bits.use",
"version": "1",
"condition": {
"broadcaster_user_id": "1971641"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.bits.use",
"version": "1",
"condition": {
"broadcaster_user_id": "1971641"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.bits.use",
"version": "1",
"condition": {
"broadcaster_user_id": "1971641"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.bits.use",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"bits": 2,
"type": "cheer",
"power_up": null,
"custom_power_up": null,
"message": {
"text": "cheer1 hi cheer1",
"fragments": [
{
"type": "cheermote",
"text": "cheer1",
"cheermote": {
"prefix": "cheer",
"bits": 1,
"tier": 1
},
"emote": null
},
{
"type": "text",
"text": " hi ",
"cheermote": null,
"emote": null
},
{
"type": "cheermote",
"text": "cheer1",
"cheermote": {
"prefix": "cheer",
"bits": 1,
"tier": 1
},
"emote": null
}
]
}
}
}Channel Cheer
The channel.cheer subscription type sends a notification when a user cheers on the specified channel.
Subscription
- Type
channel.cheer- Version
1
Authorization
Requires one of the following:
- A user access token that includes the bits:read scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The bits:read scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.cheer.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive cheer notifications for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get cheer notifications for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get cheer notifications for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.is_anonymousBooleanWhether the user cheered anonymously or not.event.user_idStringNullableThe user ID for the user who cheered on the specified channel. This is null ifis_anonymousis true.event.user_loginStringNullableThe user login for the user who cheered on the specified channel. This is null ifis_anonymousis true.event.user_nameStringNullableThe user display name for the user who cheered on the specified channel. This is null ifis_anonymousis true.event.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.messageStringThe message sent with the cheer. It includes the Cheermote text, such as Cheer100.event.bitsIntegerThe number of Bits cheered.
{
"type": "channel.cheer",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.cheer",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.cheer",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.cheer",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"is_anonymous": false,
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"message": "Cheer1000 pogchamp",
"bits": 1000
}
}Channel Custom Power-ups Redemption Add
The channel.custom_power_up_redemption.add subscription type sends a notification when a viewer has redeemed a Custom Power-up on the specified channel. The notification is also sent when broadcasters redeem their own Custom Power-up. They don't spend Bits on their own channel, but custom_power_up.bits still shows the Power-up's price. In that case, user_id matches broadcaster_user_id.
Subscription
- Type
channel.custom_power_up_redemption.add- Version
1
Authorization
Requires one of the following:
- A user access token that includes the bits:read scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The bits:read scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.custom_power_up_redemption.add.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive Custom Power-up redemption notifications for. You can optionally pass in a Power-up id to only receive notifications for a specific Power-up.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to receive Custom Power-up redemption add notifications for.condition.reward_idStringNullableSpecify a reward id to only receive notifications for a specific Custom Power-up.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to receive Custom Power-up redemption add notifications for.subscription.condition.reward_idStringThe ID of the Custom Power-up you specified. Is an empty string if you didn't specify one.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.idStringThe redemption identifier.event.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.user_idStringUser ID of the user that redeemed the Custom Power-up.event.user_loginStringLogin of the user that redeemed the Custom Power-up.event.user_nameStringDisplay name of the user that redeemed the Custom Power-up.event.user_inputStringThe user input provided. Empty string if not provided.event.statusStringThe redemption status. Custom Power-ups skip the redemption request queue, so this is fulfilled.event.custom_power_upObjectBasic information about the Custom Power-up that was redeemed, at the time it was redeemed.Hide child attributesShow child attributes
event.custom_power_up.idStringThe unique ID for this Custom Power-up.event.custom_power_up.titleStringThe user-viewable name of this Custom Power-up.event.custom_power_up.bitsIntegerThe amount of Bits required for the Custom Power-up. No Bits are consumed when broadcasters redeem their own Power-up.event.custom_power_up.promptStringThe creator-provided description for this Power-up.
event.redeemed_atStringRFC3339 timestamp of when the Custom Power-up was redeemed.
{
"type": "channel.custom_power_up_redemption.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"reward_id": "92af127c-7326-4483-a52b-b0da0be61c01"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.custom_power_up_redemption.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"reward_id": "92af127c-7326-4483-a52b-b0da0be61c01"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.custom_power_up_redemption.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"reward_id": "92af127c-7326-4483-a52b-b0da0be61c01"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.custom_power_up_redemption.add",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337",
"reward_id": "92af127c-7326-4483-a52b-b0da0be61c01"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2026-05-01T10:11:12.634234626Z"
},
"event": {
"id": "17fa2df1-ad76-4804-bfa5-a40ef63efe63",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cool_user",
"broadcaster_user_name": "Cool_User",
"user_id": "9001",
"user_login": "cooler_user",
"user_name": "Cooler_User",
"user_input": "pogchamp",
"status": "fulfilled",
"custom_power_up": {
"id": "92af127c-7326-4483-a52b-b0da0be61c01",
"title": "title",
"bits": 100,
"prompt": "Power-up prompt"
},
"redeemed_at": "2026-05-01T17:16:03.17106713Z"
}
}Channel Follow
The channel.follow subscription type sends a notification when a specified channel receives a follow.
Subscription
- Type
channel.follow- Version
2
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:followers scope.The User ID associated with the token must match the moderator_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The moderator:read:followers scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.follow.versionStringRequiredThe subscription type version:2.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get follow notifications for.condition.moderator_user_idStringRequiredThe ID of the moderator of the channel you want to get follow notifications for. If you have authorization from the broadcaster rather than a moderator, specify the broadcaster's user ID here.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get follow notifications for.subscription.condition.moderator_user_idStringThe ID of the moderator of the channel you want to get follow notifications for. If you have authorization from the broadcaster rather than a moderator, specify the broadcaster's user ID here.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe user ID for the user now following the specified channel.event.user_loginStringThe user login for the user now following the specified channel.event.user_nameStringThe user display name for the user now following the specified channel.event.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.followed_atStringRFC3339 timestamp of when the follow occurred.
{
"type": "channel.follow",
"version": "2",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.follow",
"version": "2",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.follow",
"version": "2",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.follow",
"version": "2",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"followed_at": "2020-07-15T18:16:11.17106713Z"
}
}Channel Raid
The channel.raid subscription type sends a notification when a broadcaster raids another broadcaster's channel.
The notification is sent when the raid starts and viewers are sent to the target channel, either because the broadcaster selected Raid Now or because the countdown ended. Creating or canceling a raid doesn't send a notification. Twitch sends the notification only for raids that it alerts the target channel about.
Subscription
- Type
channel.raid- Version
1
Authorization
No authorization required.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.raid.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Set either the from_broadcaster_user_id or to_broadcaster_user_id condition parameter but not both. If you pass both parameters, the subscription request fails.Hide child attributesShow child attributes
condition.from_broadcaster_user_idStringThe ID of the broadcaster whose outgoing raids you want to get notifications for. Use this parameter if you want to know when a specific broadcaster raids another broadcaster. The channel raid condition must include either from_broadcaster_user_id or to_broadcaster_user_id.condition.to_broadcaster_user_idStringThe broadcaster user ID that received the channel raid you want to get notifications for. Use this parameter if you want to know when a specific broadcaster is raided by another broadcaster. The channel raid condition must include either from_broadcaster_user_id or to_broadcaster_user_id.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.from_broadcaster_user_idStringThe ID of the broadcaster whose outgoing raids you want to get notifications for. Use this parameter if you want to know when a specific broadcaster raids another broadcaster. The channel raid condition must include either from_broadcaster_user_id or to_broadcaster_user_id. Is an empty string if you subscribed with to_broadcaster_user_id.subscription.condition.to_broadcaster_user_idStringThe broadcaster user ID that received the channel raid you want to get notifications for. Use this parameter if you want to know when a specific broadcaster is raided by another broadcaster. The channel raid condition must include either from_broadcaster_user_id or to_broadcaster_user_id. Is an empty string if you subscribed with from_broadcaster_user_id.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.from_broadcaster_user_idStringThe ID of the broadcaster whose channel the raid came from. One of the broadcaster's editors may have started the raid.event.from_broadcaster_user_loginStringThe login name of the broadcaster whose channel the raid came from.event.from_broadcaster_user_nameStringThe display name of the broadcaster whose channel the raid came from.event.to_broadcaster_user_idStringThe broadcaster ID that received the raid.event.to_broadcaster_user_loginStringThe broadcaster login that received the raid.event.to_broadcaster_user_nameStringThe broadcaster display name that received the raid.event.viewersIntegerThe number of viewers in the raid. This is the number Twitch shows in the raid alert in the target channel's chat. It can include the raiding broadcaster.
{
"type": "channel.raid",
"version": "1",
"condition": {
"to_broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.raid",
"version": "1",
"condition": {
"to_broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.raid",
"version": "1",
"condition": {
"to_broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.raid",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"from_broadcaster_user_id": "",
"to_broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"from_broadcaster_user_id": "1234",
"from_broadcaster_user_login": "cool_user",
"from_broadcaster_user_name": "Cool_User",
"to_broadcaster_user_id": "1337",
"to_broadcaster_user_login": "cooler_user",
"to_broadcaster_user_name": "Cooler_User",
"viewers": 9001
}
}Shoutout Create
Sends a notification when the specified broadcaster sends a Shoutout.
Subscription
- Type
channel.shoutout.create- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:shoutouts or moderator:manage:shoutouts scope.The User ID associated with the token must match the moderator_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The moderator:read:shoutouts or moderator:manage:shoutouts scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.shoutout.create.versionStringRequiredThe definition of the subscription request to use. Must be set to 1.conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when they send a Shoutout.condition.moderator_user_idStringRequiredThe ID of the broadcaster or one of the broadcaster's moderators. Notifications aren't filtered by this user: you receive every Shoutout sent from the broadcaster's channel, whether the broadcaster or a moderator sent it.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when they send a Shoutout.subscription.condition.moderator_user_idStringThe ID of the broadcaster or one of the broadcaster's moderators. Notifications aren't filtered by the listening user; you receive every Shoutout sent from the broadcaster's channel, whether the broadcaster or a moderator sent it.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.broadcaster_user_idStringAn ID that identifies the broadcaster that sent the Shoutout.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.to_broadcaster_user_idStringAn ID that identifies the broadcaster that received the Shoutout.event.to_broadcaster_user_loginStringThe broadcaster's login name.event.to_broadcaster_user_nameStringThe broadcaster's display name.event.moderator_user_idStringAn ID that identifies the moderator that sent the Shoutout. If the broadcaster sent the Shoutout, this ID is the same as the ID inbroadcaster_user_id.event.moderator_user_loginStringThe moderator's login name.event.moderator_user_nameStringThe moderator's display name.event.viewer_countIntegerThe number of users that were watching the broadcaster's stream at the time of the Shoutout.event.started_atStringThe UTC timestamp (in RFC3339 format) of when the moderator sent the Shoutout.event.cooldown_ends_atStringThe UTC timestamp (in RFC3339 format) of when the broadcaster may send a Shoutout to a different broadcaster.event.target_cooldown_ends_atStringThe UTC timestamp (in RFC3339 format) of when the broadcaster may send another Shoutout to the broadcaster into_broadcaster_user_id.
{
"type": "channel.shoutout.create",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.shoutout.create",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.shoutout.create",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.shoutout.create",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.1236739Z"
},
"event": {
"broadcaster_user_id": "12345",
"broadcaster_user_name": "SimplySimple",
"broadcaster_user_login": "simplysimple",
"moderator_user_id": "98765",
"moderator_user_name": "ParticularlyParticular123",
"moderator_user_login": "particularlyparticular123",
"to_broadcaster_user_id": "626262",
"to_broadcaster_user_name": "SandySanderman",
"to_broadcaster_user_login": "sandysanderman",
"started_at": "2022-07-26T17:00:03Z",
"viewer_count": 860,
"cooldown_ends_at": "2022-07-26T17:02:03Z",
"target_cooldown_ends_at": "2022-07-26T18:00:03Z"
}
}Shoutout Received
Sends a notification when the specified broadcaster receives a Shoutout.
This event isn't sent in all cases, such as when the Shoutout isn't posted to the broadcaster's activity feed.
Subscription
- Type
channel.shoutout.receive- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:shoutouts or moderator:manage:shoutouts scope.The User ID associated with the token must match the moderator_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The moderator:read:shoutouts or moderator:manage:shoutouts scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.shoutout.receive.versionStringRequiredThe definition of the subscription request to use. Must be set to 1.conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when they receive a Shoutout.condition.moderator_user_idStringRequiredThe ID of the broadcaster that received the Shoutout or one of the broadcaster's moderators.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when they receive a Shoutout.subscription.condition.moderator_user_idStringThe ID of the broadcaster that received the Shoutout or one of the broadcaster's moderators.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.broadcaster_user_idStringAn ID that identifies the broadcaster that received the Shoutout.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.from_broadcaster_user_idStringAn ID that identifies the broadcaster that sent the Shoutout.event.from_broadcaster_user_loginStringThe broadcaster's login name.event.from_broadcaster_user_nameStringThe broadcaster's display name.event.viewer_countIntegerThe number of users that were watching the from-broadcaster's stream at the time of the Shoutout.event.started_atStringThe UTC date and time (in RFC3339 format) of when the Shoutout was sent.
{
"type": "channel.shoutout.receive",
"version": "1",
"condition": {
"broadcaster_user_id": "626262",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.shoutout.receive",
"version": "1",
"condition": {
"broadcaster_user_id": "626262",
"moderator_user_id": "98765"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.shoutout.receive",
"version": "1",
"condition": {
"broadcaster_user_id": "626262",
"moderator_user_id": "98765"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.shoutout.receive",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "626262",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.1236739Z"
},
"event": {
"broadcaster_user_id": "626262",
"broadcaster_user_name": "SandySanderman",
"broadcaster_user_login": "sandysanderman",
"from_broadcaster_user_id": "12345",
"from_broadcaster_user_name": "SimplySimple",
"from_broadcaster_user_login": "simplysimple",
"viewer_count": 860,
"started_at": "2022-07-26T17:00:03Z"
}
}Channel Subscribe
The channel.subscribe subscription type sends a notification when a user starts a new subscription to the specified channel, including when the user receives a gift subscription. This includes users who subscribe again after a previous subscription ended, users who upgrade to a higher tier, users who start a new recurring subscription after canceling their current one, and users who switch from a gift, Prime, or sub token subscription to a paid one. The notification is sent when the user subscribes, even if the new subscription doesn't start until the current one ends. Automatic renewals of a recurring subscription don't send a notification. To get the resubscription messages that users share in chat, use channel.subscription.message.
Subscription
- Type
channel.subscribe- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:subscriptions scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:subscriptions scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.subscribe.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get subscribe notifications for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get subscribe notifications for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe user ID for the user who subscribed to the specified channel.event.user_loginStringThe user login for the user who subscribed to the specified channel.event.user_nameStringThe user display name for the user who subscribed to the specified channel.event.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.tierStringThe tier of the subscription.Possible values
1000First level of paid or Prime subscription.2000Second level of paid subscription.3000Third level of paid subscription.
event.is_giftBooleanWhether the subscription is a gift.
{
"type": "channel.subscribe",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.subscribe",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.subscribe",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.subscribe",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"tier": "1000",
"is_gift": false
}
}Channel Subscription End
The channel.subscription.end subscription type sends a notification when a subscription to the specified channel ends. Most subscriptions end when their subscribed period runs out without being renewed, but a subscription can also end early, for example when it's refunded. The user may still be subscribed to the channel. For example, when a gift subscription is followed by a paid subscription, or when the user upgrades to a higher tier, the earlier subscription ends separately. To check whether the user is still subscribed, use Get Broadcaster Subscriptions.
Subscription
- Type
channel.subscription.end- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:subscriptions scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:subscriptions scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.subscription.end.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get subscription end notifications for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get subscription end notifications for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe user ID for the user whose subscription ended.event.user_loginStringThe user login for the user whose subscription ended.event.user_nameStringThe user display name for the user whose subscription ended.event.broadcaster_user_idStringThe broadcaster user ID.event.broadcaster_user_loginStringThe broadcaster login.event.broadcaster_user_nameStringThe broadcaster display name.event.tierStringThe tier of the subscription that ended.Possible values
1000First level of paid or Prime subscription.2000Second level of paid subscription.3000Third level of paid subscription.
event.is_giftBooleanWhether the subscription was a gift.
{
"type": "channel.subscription.end",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.subscription.end",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.subscription.end",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.subscription.end",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"tier": "1000",
"is_gift": false
}
}Channel Subscription Gift
The channel.subscription.gift subscription type sends a notification when a user gives one or more gifted subscriptions in a channel.
Gift subscriptions that Twitch sends in the channel also send a notification, for example the gifts that match a viewer's community gift during some gift-matching promotions. In these notifications, user_id, user_login and user_name identify the account that sent the gifts, and total is the number of gifts it sent. If the gift being matched was anonymous, those fields are null and is_anonymous is true.
Subscription
- Type
channel.subscription.gift- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:subscriptions scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:subscriptions scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.subscription.gift.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get subscription gift notifications for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get subscription gift notifications for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringNullableThe user ID of the user who sent the subscription gift. Set to null if it was an anonymous subscription gift.event.user_loginStringNullableThe user login of the user who sent the gift. Set to null if it was an anonymous subscription gift.event.user_nameStringNullableThe user display name of the user who sent the gift. Set to null if it was an anonymous subscription gift.event.broadcaster_user_idStringThe broadcaster user ID.event.broadcaster_user_loginStringThe broadcaster login.event.broadcaster_user_nameStringThe broadcaster display name.event.totalIntegerThe number of subscriptions in the subscription gift. During some gift-matching promotions, this count also includes the subscriptions added to match the gift.event.tierStringThe tier of subscriptions in the subscription gift.Possible values
1000First level of paid or Prime subscription.2000Second level of paid subscription.3000Third level of paid subscription.
event.cumulative_totalIntegerNullableThe total number of subscriptions this user has gifted in the channel, including the subscriptions in this gift. A multi-month gift subscription counts once for each month it lasts. This value is null for anonymous gifts, if the gifter is the broadcaster, or if the gifter has opted out of sharing this information.event.is_anonymousBooleanWhether the subscription gift was anonymous.
{
"type": "channel.subscription.gift",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.subscription.gift",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.subscription.gift",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.subscription.gift",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"total": 2,
"tier": "1000",
"cumulative_total": 284,
"is_anonymous": false
}
}Channel Subscription Message
The channel.subscription.message subscription type sends a notification when a user shares their resubscription in a specific channel's chat, with or without a message. In some cases, Twitch also posts a resubscription notice on its own when a user who has subscribed to the channel before starts a new subscription to it. That notice also sends this notification, with an empty message.
Subscription
- Type
channel.subscription.message- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:subscriptions scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:subscriptions scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.subscription.message.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get resubscription chat message notifications for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get resubscription chat message notifications for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe user ID of the user who sent a resubscription chat message.event.user_loginStringThe user login of the user who sent a resubscription chat message.event.user_nameStringThe user display name of the user who sent a resubscription chat message.event.broadcaster_user_idStringThe broadcaster user ID.event.broadcaster_user_loginStringThe broadcaster login.event.broadcaster_user_nameStringThe broadcaster display name.event.tierStringThe tier of the user's subscription.Possible values
1000First level of paid or Prime subscription.2000Second level of paid subscription.3000Third level of paid subscription.
event.messageObjectAn object that contains the resubscription message and emote information needed to recreate the message.Hide child attributesShow child attributes
event.message.textStringThe text of the resubscription chat message. Is an empty string if the user didn't include a message, if AutoMod rejected the message, or if the notice was posted automatically.event.message.emotesObject[]NullableAn array that includes the emote ID and start and end positions for where the emote appears in the text. Is null if the message contains no emotes.Hide child attributesShow child attributes
event.message.emotes.beginIntegerThe zero-based byte offset in the UTF-8 encodedtextwhere the emote starts.event.message.emotes.endIntegerThe zero-based byte offset in the UTF-8 encodedtextof the emote's last byte. The range is inclusive.event.message.emotes.idStringThe emote ID.
event.cumulative_monthsIntegerThe total number of months the user has been subscribed to the channel.event.streak_monthsIntegerNullableThe number of consecutive months the user's current subscription has been active. This value is null if the user has opted out of sharing this information.event.duration_monthsIntegerThe month duration of the subscription.
{
"type": "channel.subscription.message",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.subscription.message",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.subscription.message",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.subscription.message",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"user_id": "1234",
"user_login": "cool_user",
"user_name": "Cool_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User",
"tier": "1000",
"message": {
"text": "Love the stream! FevziGG",
"emotes": [
{
"begin": 17,
"end": 23,
"id": "302976485"
}
]
},
"cumulative_months": 15,
"streak_months": 1,
"duration_months": 6
}
}Channel Update
The channel.update subscription type sends a notification when the category, title, content classification labels, or broadcast language of the broadcaster's channel changes. Changes made by the broadcaster, by one of their editors, or by Twitch (for example, when Twitch applies the MatureGame label because the channel's category is a mature-rated game) all send notifications.
A single update can send more than one notification. Label changes and changes to the channel's other properties are sent separately, and a category change can be followed by a label change that Twitch makes. Each notification contains all of the channel's values as of when Twitch prepared it and doesn't say which property changed. To get the channel's current values, use Get Channel Information.
Subscription
- Type
channel.update- Version
2
Authorization
No authorization required.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.update.versionStringRequiredThe subscription type version:2.conditionObjectRequiredPass in the broadcaster_user_id for the channel you want updates for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get updates for.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe broadcaster user ID for the channel you want to get updates for.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.broadcaster_user_idStringThe broadcaster's user ID.event.broadcaster_user_loginStringThe broadcaster's user login.event.broadcaster_user_nameStringThe broadcaster's user display name.event.titleStringThe channel's stream title. Is an empty string if the broadcaster hasn't set a title.event.languageStringThe channel's broadcast language, as a lowercase language code. This is usually an ISO 639-1 two-letter code, such as en, but can also be asl, zh-hk, or other. Is an empty string if no broadcast language is set.event.category_idStringThe ID of the channel's category. Is an empty string if the channel has no category, for example after the broadcaster removes it.event.category_nameStringThe name of the channel's category. Is an empty string if the channel has no category.event.content_classification_labelsString[]Array of content classification label IDs currently applied on the Channel. To retrieve a list of all possible IDs, use the Get Content Classification Labels API endpoint.
{
"type": "channel.update",
"version": "2",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.update",
"version": "2",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.update",
"version": "2",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.update",
"version": "2",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2023-06-29T17:20:33.860897266Z"
},
"event": {
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cool_user",
"broadcaster_user_name": "Cool_User",
"title": "Best Stream Ever",
"language": "en",
"category_id": "12453",
"category_name": "Grand Theft Auto",
"content_classification_labels": [ "MatureGame" ]
}
}Channel VIP Add
The channel.vip.add subscription type sends a notification when a VIP is added to the channel.
Subscription
- Type
channel.vip.add- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:vips or channel:manage:vips scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:vips or channel:manage:vips scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.vip.add.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe User ID of the broadcaster (channel) Maximum: 1
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe User ID of the broadcaster (channel) Maximum: 1
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe ID of the user who was added as a VIP.event.user_loginStringThe login of the user who was added as a VIP.event.user_nameStringThe display name of the user who was added as a VIP.event.broadcaster_user_idStringThe ID of the broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe display name of the broadcaster.
{
"type": "channel.vip.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.vip.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.vip.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.vip.add",
"version": "1",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z"
},
"event": {
"user_id": "1234",
"user_login": "mod_user",
"user_name": "Mod_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User"
}
}Channel VIP Remove
The channel.vip.remove subscription type sends a notification when a VIP is removed from the channel, including when the VIP is made a moderator.
Twitch doesn't send this notification when a user's VIP status ends because their account is deleted.
Subscription
- Type
channel.vip.remove- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:vips or channel:manage:vips scope.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:vips or channel:manage:vips scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.vip.remove.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe User ID of the broadcaster (channel) Maximum: 1
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe User ID of the broadcaster (channel) Maximum: 1
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.user_idStringThe ID of the user who was removed as a VIP.event.user_loginStringThe login of the user who was removed as a VIP.event.user_nameStringThe display name of the user who was removed as a VIP.event.broadcaster_user_idStringThe ID of the broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe display name of the broadcaster.
{
"type": "channel.vip.remove",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.vip.remove",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.vip.remove",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.vip.remove",
"version": "1",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z"
},
"event": {
"user_id": "1234",
"user_login": "mod_user",
"user_name": "Mod_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User"
}
}