Channel Ban
The channel.ban subscription type sends a notification when a viewer is timed out or banned from the specified channel.
Subscription
- Type
channel.ban- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:moderate 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:moderate scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.ban.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive ban notifications for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get ban 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 ban 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 was banned on the specified channel.event.user_loginStringThe user login for the user who was banned on the specified channel.event.user_nameStringThe user display name for the user who was banned on 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.moderator_user_idStringThe user ID of the issuer of the ban. If Shield Mode banned the user automatically because their message contained a banned term, this is the user who added that term.event.moderator_user_loginStringThe user login of the issuer of the ban. If Shield Mode banned the user automatically because their message contained a banned term, this is the user who added that term.event.moderator_user_nameStringThe display name of the issuer of the ban. If Shield Mode banned the user automatically because their message contained a banned term, this is the user who added that term.event.reasonStringThe reason behind the ban. Is an empty string if the ban or timeout has no reason.event.banned_atStringThe UTC date and time (in RFC3339 format) of when the user was banned or put in a timeout.event.ends_atStringNullableThe UTC date and time (in RFC3339 format) of when the timeout ends. Is null if the user was banned instead of put in a timeout.event.is_permanentBooleanIndicates whether the ban is permanent (true) or a timeout (false). If true,ends_atwill be null.
{
"type": "channel.ban",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.ban",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.ban",
"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.ban",
"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",
"moderator_user_id": "1339",
"moderator_user_login": "mod_user",
"moderator_user_name": "Mod_User",
"reason": "Offensive language",
"banned_at": "2020-07-15T18:15:11.17106713Z",
"ends_at": "2020-07-15T18:16:11.17106713Z",
"is_permanent": false
}
}Channel Moderate
The channel.moderate subscription type sends a notification when a moderator performs a moderation action in a channel. Some of these actions affect chatters in other channels during Shared Chat. A single change can send more than one notification. For example, making a VIP a moderator sends an unvip and a mod notification, making a moderator a VIP in Twitch chat or on the Twitch website sends an unmod and a vip notification, approving an unban request sends an approve_unban_request and an unban notification, and banning or timing out a moderator also removes their moderator status, which sends an unmod notification.
Subscription
- Type
channel.moderate- Version
1
Authorization
Requires one of the following:
- A user access token that includes all of the following:
- moderator:read:blocked_terms or moderator:manage:blocked_terms
- moderator:read:chat_settings or moderator:manage:chat_settings
- moderator:read:unban_requests or moderator:manage:unban_requests
- moderator:read:banned_users or moderator:manage:banned_users
- moderator:read:chat_messages or moderator:manage:chat_messages
- moderator:read:moderators
- moderator:read:vips
- An app access token.The application, through prior authorization, must have been granted:
- All of the following, for the user represented by the moderator_user_id event condition:
- moderator:read:blocked_terms or moderator:manage:blocked_terms
- moderator:read:chat_settings or moderator:manage:chat_settings
- moderator:read:unban_requests or moderator:manage:unban_requests
- moderator:read:banned_users or moderator:manage:banned_users
- moderator:read:chat_messages or moderator:manage:chat_messages
- moderator:read:moderators
- moderator:read:vips
- All of the following, for the user represented by the moderator_user_id event condition:
Subscription Request Body
typeStringRequiredThe subscription type name:channel.moderate.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe user ID of the broadcaster.condition.moderator_user_idStringRequiredThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app with the required scopes. It doesn't filter notifications: you receive every moderation action in the broadcaster's channel, whoever performed it.
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.subscription.condition.moderator_user_idStringThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app with the required scopes. It doesn't filter notifications: you receive every moderation action in the broadcaster's channel, whoever performed 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_idStringThe ID of the broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe user name of the broadcaster.event.source_broadcaster_user_idStringNullableThe ID of the channel where the action originally occurred. Is null unless the action happened in another channel in the broadcaster's Shared Chat session (the shared_chat_ban, shared_chat_timeout, shared_chat_unban, shared_chat_untimeout and shared_chat_delete actions).event.source_broadcaster_user_loginStringNullableThe login of the channel where the action originally occurred. Is null unless the action happened in another channel in the broadcaster's Shared Chat session (the shared_chat_ actions).event.source_broadcaster_user_nameStringNullableThe channel in which the action originally occurred. Is null when the moderator action happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.event.moderator_user_idStringThe ID of the user who performed the action. For raid and unraid, this is the broadcaster or one of the broadcaster's editors. For unvip, it can be the VIP who removed their own VIP status.event.moderator_user_loginStringThe login of the user who performed the action.event.moderator_user_nameStringThe display name of the user who performed the action.event.actionStringThe type of action: Possible values are.Possible values
bantimeoutunbanuntimeoutclearemoteonlyemoteonlyofffollowersfollowersoffuniquechatuniquechatoffslowslowoffsubscriberssubscribersoffunraiddeleteunvipvipraidadd_blocked_termadd_permitted_termremove_blocked_termremove_permitted_termmodunmodapprove_unban_requestdeny_unban_requestshared_chat_banshared_chat_timeoutshared_chat_untimeoutshared_chat_unbanshared_chat_delete
event.followersObjectNullableMetadata associated with the followers command.Hide child attributesShow child attributes
event.followers.follow_duration_minutesIntegerThe length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room.
event.slowObjectNullableMetadata associated with the slow command.Hide child attributesShow child attributes
event.slow.wait_time_secondsIntegerThe amount of time, in seconds, that users need to wait between sending messages.
event.vipObjectNullableMetadata associated with the vip command.Hide child attributesShow child attributes
event.vip.user_idStringThe ID of the user gaining VIP status.event.vip.user_loginStringThe login of the user gaining VIP status.event.vip.user_nameStringThe user name of the user gaining VIP status.
event.unvipObjectNullableMetadata associated with the unvip command.Hide child attributesShow child attributes
event.unvip.user_idStringThe ID of the user losing VIP status.event.unvip.user_loginStringThe login of the user losing VIP status.event.unvip.user_nameStringThe user name of the user losing VIP status.
event.modObjectNullableMetadata associated with the mod command.Hide child attributesShow child attributes
event.mod.user_idStringThe ID of the user gaining mod status.event.mod.user_loginStringThe login of the user gaining mod status.event.mod.user_nameStringThe user name of the user gaining mod status.
event.unmodObjectNullableMetadata associated with the unmod command.Hide child attributesShow child attributes
event.unmod.user_idStringThe ID of the user losing mod status.event.unmod.user_loginStringThe login of the user losing mod status.event.unmod.user_nameStringThe user name of the user losing mod status.
event.banObjectNullableMetadata associated with the ban command.Hide child attributesShow child attributes
event.ban.user_idStringThe ID of the user being banned.event.ban.user_loginStringThe login of the user being banned.event.ban.user_nameStringThe user name of the user being banned.event.ban.reasonStringNullableThe reason given for the ban. Is an empty string if no reason was given.
event.unbanObjectNullableMetadata associated with the unban command.Hide child attributesShow child attributes
event.unban.user_idStringThe ID of the user being unbanned.event.unban.user_loginStringThe login of the user being unbanned.event.unban.user_nameStringThe user name of the user being unbanned.
event.timeoutObjectNullableMetadata associated with the timeout command.Hide child attributesShow child attributes
event.timeout.user_idStringThe ID of the user being timed out.event.timeout.user_loginStringThe login of the user being timed out.event.timeout.user_nameStringThe user name of the user being timed out.event.timeout.reasonStringNullableThe reason given for the timeout. Is an empty string if no reason was given.event.timeout.expires_atStringThe time at which the timeout ends.
event.untimeoutObjectNullableMetadata associated with the untimeout command.Hide child attributesShow child attributes
event.untimeout.user_idStringThe ID of the user being untimed out.event.untimeout.user_loginStringThe login of the user being untimed out.event.untimeout.user_nameStringThe user name of the user untimed out.
event.raidObjectNullableMetadata associated with the raid command.Hide child attributesShow child attributes
event.raid.user_idStringThe ID of the user being raided.event.raid.user_loginStringThe login of the user being raided.event.raid.user_nameStringThe user name of the user raided.event.raid.viewer_countIntegerThe viewer count.
event.unraidObjectNullableMetadata associated with the unraid command.Hide child attributesShow child attributes
event.unraid.user_idStringThe ID of the user no longer being raided.event.unraid.user_loginStringThe login of the user no longer being raided.event.unraid.user_nameStringThe user name of the no longer user raided.
event.deleteObjectNullableMetadata associated with the delete command.Hide child attributesShow child attributes
event.delete.user_idStringThe ID of the user whose message is being deleted.event.delete.user_loginStringThe login of the user.event.delete.user_nameStringThe user name of the user.event.delete.message_idStringThe ID of the message being deleted.event.delete.message_bodyStringThe message body of the message being deleted.
event.automod_termsObjectNullableMetadata associated with the automod terms changes. Changes to blocked terms that the broadcaster marks as private don't send a notification.Hide child attributesShow child attributes
event.automod_terms.actionStringEither “add” or “remove”.event.automod_terms.listStringEither “blocked” or “permitted”.event.automod_terms.termsString[]Terms being added or removed.event.automod_terms.from_automodBooleanWhether the terms were added due to an Automod message approve/deny action.
event.unban_requestObjectNullableMetadata associated with an unban request.Hide child attributesShow child attributes
event.unban_request.is_approvedBooleanWhether or not the unban request was approved or denied.event.unban_request.user_idStringThe ID of the banned user.event.unban_request.user_loginStringThe login of the user.event.unban_request.user_nameStringThe user name of the user.event.unban_request.moderator_messageStringThe message included by the moderator explaining their approval or denial.
event.shared_chat_banObjectNullableInformation about theshared_chat_banevent. Is null ifactionis notshared_chat_ban. This field has the same information as thebanfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_unbanObjectNullableInformation about theshared_chat_unbanevent. Is null ifactionis notshared_chat_unban. This field has the same information as theunbanfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_timeoutObjectNullableInformation about theshared_chat_timeoutevent. Is null ifactionis notshared_chat_timeout. This field has the same information as thetimeoutfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_untimeoutObjectNullableInformation about theshared_chat_untimeoutevent. Is null ifactionis notshared_chat_untimeout. This field has the same information as theuntimeoutfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_deleteObjectNullableInformation about theshared_chat_deleteevent. Is null ifactionis notshared_chat_delete. This field has the same information as thedeletefield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.
{
"type": "channel.moderate",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.moderate",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.moderate",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.moderate",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z",
"cost": 0
},
"event": {
"broadcaster_user_id": "1337",
"broadcaster_user_login": "glowillig",
"broadcaster_user_name": "glowillig",
"source_broadcaster_user_id": null,
"source_broadcaster_user_login": null,
"source_broadcaster_user_name": null,
"moderator_user_id": "424596340",
"moderator_user_login": "quotrok",
"moderator_user_name": "quotrok",
"action": "mod",
"followers": null,
"slow": null,
"vip": null,
"unvip": null,
"mod": {
"user_id": "141981764",
"user_login": "twitchdev",
"user_name": "TwitchDev"
},
"unmod": null,
"ban": null,
"unban": null,
"timeout": null,
"untimeout": null,
"raid": null,
"unraid": null,
"delete": null,
"automod_terms": null,
"unban_request": null,
"shared_chat_ban": null,
"shared_chat_unban": null,
"shared_chat_timeout": null,
"shared_chat_untimeout": null,
"shared_chat_delete": null
}
}Channel Moderate V2
The channel.moderate subscription type sends a notification when a moderator performs a moderation action in a channel. Some of these actions affect chatters in other channels during Shared Chat.
- This is the second version of
channel.moderatewith warnings added.
Subscription
- Type
channel.moderate- Version
2
Authorization
Requires one of the following:
- A user access token that includes all of the following:
- moderator:read:blocked_terms or moderator:manage:blocked_terms
- moderator:read:chat_settings or moderator:manage:chat_settings
- moderator:read:unban_requests or moderator:manage:unban_requests
- moderator:read:banned_users or moderator:manage:banned_users
- moderator:read:chat_messages or moderator:manage:chat_messages
- moderator:read:warnings or moderator:manage:warnings
- moderator:read:moderators
- moderator:read:vips
- An app access token.The application, through prior authorization, must have been granted:
- All of the following, for the user represented by the moderator_user_id event condition:
- moderator:read:blocked_terms or moderator:manage:blocked_terms
- moderator:read:chat_settings or moderator:manage:chat_settings
- moderator:read:unban_requests or moderator:manage:unban_requests
- moderator:read:banned_users or moderator:manage:banned_users
- moderator:read:chat_messages or moderator:manage:chat_messages
- moderator:read:warnings or moderator:manage:warnings
- moderator:read:moderators
- moderator:read:vips
- All of the following, for the user represented by the moderator_user_id event condition:
Subscription Request Body
typeStringRequiredThe subscription type name:channel.moderate.versionStringRequiredThe subscription type version:2.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe user ID of the broadcaster.condition.moderator_user_idStringRequiredThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app. The subscription receives moderation actions from every moderator in the channel, not only this user's.
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.subscription.condition.moderator_user_idStringThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app. The subscription receives moderation actions from every moderator in the channel, not only this user's.
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 ID of the broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe broadcaster's display name.event.source_broadcaster_user_idStringNullableThe ID of the channel where the action originally took place. Is null unlessactionis shared_chat_ban, shared_chat_unban, shared_chat_timeout, shared_chat_untimeout or shared_chat_delete.event.source_broadcaster_user_loginStringNullableThe login of the channel where the action originally took place. Is null unlessactionis one of the shared_chat_ actions.event.source_broadcaster_user_nameStringNullableThe display name of the channel where the action originally took place. Is null unlessactionis one of the shared_chat_ actions.event.moderator_user_idStringThe ID of the user who performed the action. For raid and unraid, this is the broadcaster or one of the broadcaster's editors. For the shared_chat_ actions, it's the user who performed the action in the channel where it originally occurred. For all other actions, it's the broadcaster or one of the broadcaster's moderators. For unvip, it can also be the VIP who removed their own VIP status.event.moderator_user_loginStringThe login of the moderator.event.moderator_user_nameStringThe moderator's display name.event.actionStringThe action performed.Possible values
bantimeoutunbanuntimeoutclearemoteonlyemoteonlyofffollowersfollowersoffuniquechatuniquechatoffslowslowoffsubscriberssubscribersoffunraiddeleteunvipvipraidadd_blocked_termadd_permitted_termremove_blocked_termremove_permitted_termmodunmodapprove_unban_requestdeny_unban_requestwarnshared_chat_banshared_chat_timeoutshared_chat_unbanshared_chat_untimeoutshared_chat_delete
event.followersObjectNullableMetadata associated with the followers command.Hide child attributesShow child attributes
event.followers.follow_duration_minutesIntegerThe length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room.
event.slowObjectNullableMetadata associated with the slow command.Hide child attributesShow child attributes
event.slow.wait_time_secondsIntegerThe amount of time, in seconds, that users need to wait between sending messages.
event.vipObjectNullableMetadata associated with the vip command.Hide child attributesShow child attributes
event.vip.user_idStringThe ID of the user gaining VIP status.event.vip.user_loginStringThe login of the user gaining VIP status.event.vip.user_nameStringThe display name of the user gaining VIP status.
event.unvipObjectNullableMetadata associated with the unvip command.Hide child attributesShow child attributes
event.unvip.user_idStringThe ID of the user losing VIP status.event.unvip.user_loginStringThe login of the user losing VIP status.event.unvip.user_nameStringThe display name of the user losing VIP status.
event.modObjectNullableMetadata associated with the mod command.Hide child attributesShow child attributes
event.mod.user_idStringThe ID of the user gaining mod status.event.mod.user_loginStringThe login of the user gaining mod status.event.mod.user_nameStringThe display name of the user gaining mod status.
event.unmodObjectNullableMetadata associated with the unmod command.Hide child attributesShow child attributes
event.unmod.user_idStringThe ID of the user losing mod status.event.unmod.user_loginStringThe login of the user losing mod status.event.unmod.user_nameStringThe display name of the user losing mod status.
event.banObjectNullableMetadata associated with the ban command.Hide child attributesShow child attributes
event.ban.user_idStringThe ID of the user being banned.event.ban.user_loginStringThe login of the user being banned.event.ban.user_nameStringThe display name of the user being banned.event.ban.reasonStringNullableThe reason given for the ban. Is an empty string if the moderator didn't give a reason.
event.unbanObjectNullableMetadata associated with the unban command.Hide child attributesShow child attributes
event.unban.user_idStringThe ID of the user being unbanned.event.unban.user_loginStringThe login of the user being unbanned.event.unban.user_nameStringThe display name of the user being unbanned.
event.timeoutObjectNullableMetadata associated with the timeout command.Hide child attributesShow child attributes
event.timeout.user_idStringThe ID of the user being timed out.event.timeout.user_loginStringThe login of the user being timed out.event.timeout.user_nameStringThe display name of the user being timed out.event.timeout.reasonStringNullableThe reason given for the timeout. Is an empty string if the moderator didn't give a reason.event.timeout.expires_atStringThe time at which the timeout ends.
event.untimeoutObjectNullableMetadata associated with the untimeout command.Hide child attributesShow child attributes
event.untimeout.user_idStringThe ID of the user being untimed out.event.untimeout.user_loginStringThe login of the user being untimed out.event.untimeout.user_nameStringThe display name of the user being untimed out.
event.raidObjectNullableMetadata associated with the raid command.Hide child attributesShow child attributes
event.raid.user_idStringThe ID of the user being raided.event.raid.user_loginStringThe login of the user being raided.event.raid.user_nameStringThe display name of the user being raided.event.raid.viewer_countIntegerThe viewer count.
event.unraidObjectNullableMetadata associated with the unraid command.Hide child attributesShow child attributes
event.unraid.user_idStringThe ID of the user no longer being raided.event.unraid.user_loginStringThe login of the user no longer being raided.event.unraid.user_nameStringThe display name of the user no longer being raided.
event.deleteObjectNullableMetadata associated with the delete command.Hide child attributesShow child attributes
event.delete.user_idStringThe ID of the user whose message is being deleted.event.delete.user_loginStringThe login of the user.event.delete.user_nameStringThe display name of the user.event.delete.message_idStringThe ID of the message being deleted.event.delete.message_bodyStringThe message body of the message being deleted.
event.automod_termsObjectNullableMetadata associated with the automod terms changes.Hide child attributesShow child attributes
event.automod_terms.actionStringEither “add” or “remove”.event.automod_terms.listStringEither “blocked” or “permitted”.event.automod_terms.termsString[]Terms being added or removed.event.automod_terms.from_automodBooleanWhether the terms were added due to an Automod message approve/deny action.
event.unban_requestObjectNullableMetadata associated with an unban request.Hide child attributesShow child attributes
event.unban_request.is_approvedBooleanWhether or not the unban request was approved or denied.event.unban_request.user_idStringThe ID of the banned user.event.unban_request.user_loginStringThe login of the user.event.unban_request.user_nameStringThe display name of the user.event.unban_request.moderator_messageStringThe message included by the moderator explaining their approval or denial.
event.warnObjectNullableMetadata associated with the warn command.Hide child attributesShow child attributes
event.warn.user_idStringThe ID of the user being warned.event.warn.user_loginStringThe login of the user being warned.event.warn.user_nameStringThe display name of the user being warned.event.warn.reasonStringNullableReason given for the warning.event.warn.chat_rules_citedString[]NullableChat rules cited for the warning.
event.shared_chat_banObjectNullableInformation about theshared_chat_banevent. Is null ifactionis notshared_chat_ban. This field has the same information as thebanfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_unbanObjectNullableInformation about theshared_chat_unbanevent. Is null ifactionis notshared_chat_unban. This field has the same information as theunbanfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_timeoutObjectNullableInformation about theshared_chat_timeoutevent. Is null ifactionis notshared_chat_timeout. This field has the same information as thetimeoutfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_untimeoutObjectNullableInformation about theshared_chat_untimeoutevent. Is null ifactionis notshared_chat_untimeout. This field has the same information as theuntimeoutfield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.event.shared_chat_deleteObjectNullableInformation about theshared_chat_deleteevent. Is null ifactionis notshared_chat_delete. This field has the same information as thedeletefield but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.
{
"type": "channel.moderate",
"version": "2",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.moderate",
"version": "2",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.moderate",
"version": "2",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.moderate",
"version": "2",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z",
"cost": 0
},
"event": {
"broadcaster_user_id": "423374343",
"broadcaster_user_login": "glowillig",
"broadcaster_user_name": "glowillig",
"source_broadcaster_user_id": null,
"source_broadcaster_user_login": null,
"source_broadcaster_user_name": null,
"moderator_user_id": "424596340",
"moderator_user_login": "quotrok",
"moderator_user_name": "quotrok",
"action": "warn",
"followers": null,
"slow": null,
"vip": null,
"unvip": null,
"warn": {
"user_id": "141981764",
"user_login": "twitchdev",
"user_name": "TwitchDev",
"reason": "cut it out",
"chat_rules_cited": null
},
"mod": null,
"unmod": null,
"ban": null,
"unban": null,
"timeout": null,
"untimeout": null,
"raid": null,
"unraid": null,
"delete": null,
"automod_terms": null,
"unban_request": null,
"shared_chat_ban": null,
"shared_chat_unban": null,
"shared_chat_timeout": null,
"shared_chat_untimeout": null,
"shared_chat_delete": null
}
}Channel Moderator Add
The channel.moderator.add subscription type sends a notification when a user is given moderator privileges on a specified channel.
Subscription
- Type
channel.moderator.add- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderation: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 moderation:read scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.moderator.add.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive moderator addition notifications for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get moderator addition 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 moderator addition 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.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.user_idStringThe user ID of the new moderator.event.user_loginStringThe user login of the new moderator.event.user_nameStringThe display name of the new moderator.
{
"type": "channel.moderator.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.moderator.add",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.moderator.add",
"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.moderator.add",
"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": "mod_user",
"user_name": "Mod_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User"
}
}Channel Moderator Remove
The channel.moderator.remove subscription type sends a notification when a user has moderator privileges removed on a specified channel. This includes moderators who remove their own moderator status, moderators that the broadcaster bans or puts in a timeout, and moderators who are made a VIP.
Subscription
- Type
channel.moderator.remove- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderation: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 moderation:read scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.moderator.remove.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive moderator removal notifications for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get moderator removal 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 moderator removal 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.broadcaster_user_idStringThe requested broadcaster ID.event.broadcaster_user_loginStringThe requested broadcaster login.event.broadcaster_user_nameStringThe requested broadcaster display name.event.user_idStringThe user ID of the removed moderator.event.user_loginStringThe user login of the removed moderator.event.user_nameStringThe display name of the removed moderator.
{
"type": "channel.moderator.remove",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.moderator.remove",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.moderator.remove",
"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.moderator.remove",
"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": "not_mod_user",
"user_name": "Not_Mod_User",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cooler_user",
"broadcaster_user_name": "Cooler_User"
}
}Shield Mode Begin
Sends a notification when the broadcaster or one of the broadcaster's moderators activates Shield Mode. This event informs the subscriber that the broadcaster's moderation settings were changed based on the broadcaster's Shield Mode configuration settings.
Subscription
- Type
channel.shield_mode.begin- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:shield_mode or moderator:manage:shield_mode 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:shield_mode or moderator:manage:shield_mode 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.shield_mode.begin.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 Shield Mode is activated in their channel.condition.moderator_user_idStringRequiredThe ID of the broadcaster 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 Shield Mode is activated in their channel.subscription.condition.moderator_user_idStringThe ID of the broadcaster 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 whose Shield Mode status was updated.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.moderator_user_idStringAn ID that identifies the moderator that updated the Shield Mode's status. If the broadcaster updated the status, this ID will be the same asbroadcaster_user_id.event.moderator_user_loginStringThe moderator's login name.event.moderator_user_nameStringThe moderator's display name.event.started_atStringThe UTC timestamp (in RFC3339 format) of when the moderator activated Shield Mode. The object includes this field only for channel.shield_mode.begin events.
{
"type": "channel.shield_mode.begin",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.shield_mode.begin",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.shield_mode.begin",
"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.shield_mode.begin",
"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",
"started_at": "2022-07-26T17:00:03.17106713Z"
}
}Shield Mode End
Sends a notification when the broadcaster or one of the broadcaster's moderators deactivates Shield Mode. This event informs the subscriber that the broadcaster's moderation settings were changed back to the broadcaster's previous moderation settings.
Subscription
- Type
channel.shield_mode.end- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:shield_mode or moderator:manage:shield_mode 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:shield_mode or moderator:manage:shield_mode 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.shield_mode.end.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 Shield Mode is deactivated in their channel.condition.moderator_user_idStringRequiredThe ID of the broadcaster 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 Shield Mode is deactivated in their channel.subscription.condition.moderator_user_idStringThe ID of the broadcaster 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 whose Shield Mode status was updated.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.moderator_user_idStringAn ID that identifies the moderator that updated the Shield Mode's status. If the broadcaster updated the status, this ID will be the same asbroadcaster_user_id.event.moderator_user_loginStringThe moderator's login name.event.moderator_user_nameStringThe moderator's display name.event.ended_atStringThe UTC timestamp (in RFC3339 format) of when the moderator deactivated Shield Mode. The object includes this field only for channel.shield_mode.end events.
{
"type": "channel.shield_mode.end",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.shield_mode.end",
"version": "1",
"condition": {
"broadcaster_user_id": "12345",
"moderator_user_id": "98765"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.shield_mode.end",
"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.shield_mode.end",
"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",
"ended_at": "2022-07-27T01:30:23.17106713Z"
}
}Channel Suspicious User Message
The channel.suspicious_user.message subscription type sends a notification when a suspicious user sends a chat message in the broadcaster's channel. Only users whose status is active_monitoring or restricted trigger the notification. The notification is sent even when the message doesn't appear in chat: a restricted user's messages are withheld from chat, and AutoMod may hold the message for review. In a shared chat session, the notification is sent only for the channel where the user sent the message. If AutoMod holds the message and a moderator allows it, you may receive a second notification for the allowed message, with a different message_id.
Subscription
- Type
channel.suspicious_user.message- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:suspicious_users 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:suspicious_users scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.suspicious_user.message.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.moderator_user_idStringRequiredThe ID of a user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.condition.broadcaster_user_idStringRequiredUser ID of the channel to receive chat message events 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.moderator_user_idStringThe ID of a user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.subscription.condition.broadcaster_user_idStringUser ID of the channel to receive chat message events 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 ID of the channel where the suspicious user sent the message.event.broadcaster_user_nameStringThe display name of the channel where the suspicious user sent the message.event.broadcaster_user_loginStringThe login of the channel where the suspicious user sent the message.event.user_idStringThe user ID of the user that sent the message.event.user_nameStringThe display name of the user that sent the message.event.user_loginStringThe user login of the user that sent the message.event.low_trust_statusStringThe status set for the suspicious user.Possible values
active_monitoringThe user is being monitored. Their messages appear in chat.restrictedThe user is restricted. Their messages are withheld from chat.
event.shared_ban_channel_idsString[]NullableThe IDs of the channels that share ban information with the broadcaster's channel and where the suspicious user is permanently banned. Is null if the user isn't banned in any of those channels.event.typesString[]The user types that apply to the suspicious user. Contains at least one of the following values.Possible values
manually_addedban_evaderbanned_in_shared_channel
event.ban_evasion_evaluationStringA ban evasion likelihood value that Twitch applied to the user automatically.Possible values
possibleThe user is possibly evading a ban.likelyThe user is likely evading a ban.unknownTwitch hasn't evaluated the user, or evaluated them as unlikely to be evading a ban.
event.messageObjectThe structured chat message.Hide child attributesShow child attributes
event.message.message_idStringThe UUID that identifies the message.event.message.textStringThe chat message in plain text.event.message.fragmentsObject[]Ordered list of chat message fragments.Hide child attributesShow child attributes
event.message.fragments.typeStringThe type of message fragment.Possible values
textcheermoteemote
event.message.fragments.textStringMessage text in fragment.event.message.fragments.cheermoteObjectNullableMetadata 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. 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.
event.message.fragments.emoteObjectNullableMetadata pertaining to the emote.Hide child attributesShow child attributes
event.message.fragments.emote.idStringAn ID that uniquely identifies this emote.event.message.fragments.emote.emote_set_idStringAn ID that identifies the emote set that the emote belongs to.
{
"type": "channel.suspicious_user.message",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.suspicious_user.message",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.suspicious_user.message",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.suspicious_user.message",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1050263435",
"moderator_user_id": "1050263436"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2023-04-11T10:11:12.123Z"
},
"event": {
"broadcaster_user_id": "1050263435",
"broadcaster_user_name": "77f111cbb75341449f5",
"broadcaster_user_login": "77f111cbb75341449f5",
"user_id": "1050263437",
"user_name": "06fbcc75952245c5a87",
"user_login": "06fbcc75952245c5a87",
"low_trust_status": "active_monitoring",
"shared_ban_channel_ids": ["100", "200"],
"types": ["manually_added", "banned_in_shared_channel"],
"ban_evasion_evaluation": "unknown",
"message": {
"message_id": "a2c1e5b8-7d3f-4e9a-b6c0-1f2e3d4c5b6a",
"text": "Hello Kappa",
"fragments": [
{
"type": "text",
"text": "Hello ",
"cheermote": null,
"emote": null
},
{
"type": "emote",
"text": "Kappa",
"cheermote": null,
"emote": {
"id": "25",
"emote_set_id": "0"
}
}
]
}
}
}Channel Suspicious User Update
The channel.suspicious_user.update subscription type sends a notification when the broadcaster or one of their moderators manually changes a user's suspicious user status in the broadcaster's channel: marking the user as monitored or restricted, or removing the status. For example, calling Add Suspicious Status to Chat User or Remove Suspicious Status From Chat User sends this notification. Twitch doesn't send it when it changes a user's status automatically, such as when it detects a likely ban evader or the user is banned in a channel that shares bans with this one.
Subscription
- Type
channel.suspicious_user.update- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:suspicious_users 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:suspicious_users scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.suspicious_user.update.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.moderator_user_idStringRequiredThe ID of a user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.condition.broadcaster_user_idStringRequiredThe ID of the broadcaster whose suspicious user status changes you want to get 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.moderator_user_idStringThe ID of a user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.subscription.condition.broadcaster_user_idStringThe ID of the broadcaster whose suspicious user status changes you want to get 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.broadcaster_user_idStringThe ID of the channel where the treatment for a suspicious user was updated.event.broadcaster_user_nameStringThe display name of the channel where the treatment for a suspicious user was updated.event.broadcaster_user_loginStringThe Login of the channel where the treatment for a suspicious user was updated.event.moderator_user_idStringThe ID of the broadcaster or moderator who changed the status.event.moderator_user_nameStringThe display name of the user who changed the status.event.moderator_user_loginStringThe login name of the user who changed the status.event.user_idStringThe ID of the suspicious user whose treatment was updated.event.user_nameStringThe display name of the suspicious user whose treatment was updated.event.user_loginStringThe login of the suspicious user whose treatment was updated.event.low_trust_statusStringThe suspicious user status that the broadcaster or moderator set for the user.Possible values
active_monitoringThe user is marked as monitored.restrictedThe user is marked as restricted.no_treatmentThe user's suspicious user status was removed.
{
"type": "channel.suspicious_user.update",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.suspicious_user.update",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.suspicious_user.update",
"version": "1",
"condition": {
"moderator_user_id": "9001",
"broadcaster_user_id": "1337"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.suspicious_user.update",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1050263435",
"moderator_user_id": "1050263436"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2023-04-11T10:11:12.123Z"
},
"event": {
"broadcaster_user_id": "1050263435",
"broadcaster_user_name": "77f111cbb75341449f5",
"broadcaster_user_login": "77f111cbb75341449f5",
"moderator_user_id": "1050263436",
"moderator_user_name": "29087e59dfc441968f6",
"moderator_user_login": "29087e59dfc441968f6",
"user_id": "1050263437",
"user_name": "06fbcc75952245c5a87",
"user_login": "06fbcc75952245c5a87",
"low_trust_status": "restricted"
}
}Channel Unban
The channel.unban subscription type sends a notification when a viewer is unbanned from the specified channel, or when a viewer's timeout is removed before it ends. A timeout that ends on its own doesn't send a notification. The event doesn't say whether a ban or a timeout was removed. To tell them apart, use channel.moderate, whose action is unban or untimeout.
Subscription
- Type
channel.unban- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:moderate 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:moderate scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.unban.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Pass in the broadcaster user ID for the channel you want to receive unban notifications for.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe broadcaster user ID for the channel you want to get unban 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 unban 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 was unbanned on the specified channel.event.user_loginStringThe user login for the user who was unbanned on the specified channel.event.user_nameStringThe user display name for the user who was unbanned on 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.moderator_user_idStringThe user ID of the issuer of the unban.event.moderator_user_loginStringThe user login of the issuer of the unban.event.moderator_user_nameStringThe user display name of the issuer of the unban.
{
"type": "channel.unban",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.unban",
"version": "1",
"condition": {
"broadcaster_user_id": "1337"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.unban",
"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.unban",
"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",
"moderator_user_id": "1339",
"moderator_user_login": "mod_user",
"moderator_user_name": "Mod_User"
}
}Channel Unban Request Create
The channel.unban_request.create subscription type sends a notification when a user creates an unban request.
Subscription
- Type
channel.unban_request.create- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:unban_requests or moderator:manage:unban_requests 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:unban_requests or moderator:manage:unban_requests scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.unban_request.create.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.moderator_user_idStringRequiredThe ID of the user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.condition.broadcaster_user_idStringRequiredThe ID of the broadcaster you want to get chat unban request 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.moderator_user_idStringThe ID of the user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.subscription.condition.broadcaster_user_idStringThe ID of the broadcaster you want to get chat unban request 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.idStringThe ID of the unban request.event.broadcaster_user_idStringThe broadcaster's user ID for the channel the unban request was created for.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.user_idStringUser ID of user that is requesting to be unbanned.event.user_loginStringThe user's login name.event.user_nameStringThe user's display name.event.textStringMessage sent in the unban request. Is an empty string if the user didn't include a message.event.created_atStringThe UTC timestamp (in RFC3339 format) of when the unban request was created. Twitch sets it when it processes the new request, so it can be slightly later than thecreated_atvalue that Get Unban Requests returns for the same request.
{
"type": "channel.unban_request.create",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.unban_request.create",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.unban_request.create",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.unban_request.create",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"id": "92af127c-7326-4483-a52b-b0da0be61c01",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cool_user",
"broadcaster_user_name": "Cool_User",
"user_id": "1339",
"user_login": "not_cool_user",
"user_name": "Not_Cool_User",
"text": "unban me",
"created_at": "2023-11-16T10:11:12.634234626Z"
}
}Channel Unban Request Resolve
The channel.unban_request.resolve subscription type sends a notification when an unban request is resolved: the broadcaster or a moderator approves or denies it, the user cancels it, or the user is unbanned while the request is pending, which approves it automatically.
Subscription
- Type
channel.unban_request.resolve- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:unban_requests or moderator:manage:unban_requests 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:unban_requests or moderator:manage:unban_requests scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.unban_request.resolve.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.moderator_user_idStringRequiredThe ID of the user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.condition.broadcaster_user_idStringRequiredThe ID of the broadcaster you want to get unban request resolution 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.moderator_user_idStringThe ID of the user that has permission to moderate the broadcaster's channel and has granted your app permission to subscribe to this subscription type.subscription.condition.broadcaster_user_idStringThe ID of the broadcaster you want to get unban request resolution 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.idStringThe ID of the unban request.event.broadcaster_user_idStringThe broadcaster's user ID for the channel the unban request was updated for.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.moderator_user_idStringNullableThe ID of the broadcaster or moderator who approved or denied the request. Is null if the user canceled the request, or if the request was approved automatically because the user was unbanned.event.moderator_user_loginStringNullableThe login name of the broadcaster or moderator who approved or denied the request. Is null in the same cases asmoderator_user_id.event.moderator_user_nameStringNullableThe display name of the broadcaster or moderator who approved or denied the request. Is null in the same cases asmoderator_user_id.event.user_idStringUser ID of user that requested to be unbanned.event.user_loginStringThe user's login name.event.user_nameStringThe user's display name.event.resolution_textStringNullableThe text the broadcaster or moderator supplied when approving or denying the request. Is an empty string if they didn't supply any. Is null if the user canceled the request, or if the request was approved automatically because the user was unbanned.event.statusStringThe request's resolution.Possible values
approvedThe broadcaster or a moderator approved the request, or the user was unbanned while the request was pending.canceledThe user canceled their request.deniedThe broadcaster or a moderator denied the request.
{
"type": "channel.unban_request.resolve",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.unban_request.resolve",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.unban_request.resolve",
"version": "1",
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.unban_request.resolve",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "1337",
"moderator_user_id": "1338"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2019-11-16T10:11:12.634234626Z"
},
"event": {
"id": "92af127c-7326-4483-a52b-b0da0be61c01",
"broadcaster_user_id": "1337",
"broadcaster_user_login": "cool_user",
"broadcaster_user_name": "Cool_User",
"moderator_user_id": "1337",
"moderator_user_login": "cool_user",
"moderator_user_name": "Cool_User",
"user_id": "1339",
"user_login": "not_cool_user",
"user_name": "Not_Cool_User",
"resolution_text": "no",
"status": "denied"
}
}Channel Warning Acknowledgement
The channel.warning.acknowledge subscription type sends a notification when a user acknowledges a warning they received in the broadcaster's chat. The notification identifies the broadcaster and the user. It doesn't include the warning's reason, the chat rules cited, or the moderator who issued it; to get those, subscribe to channel.warning.send.
Only the warned user can acknowledge a warning, and only their acknowledgement sends this notification. If the user is warned again before acknowledging, the new warning replaces the old one, so you receive a single channel.warning.acknowledge notification even though you received a channel.warning.send notification for each warning.
Subscription
- Type
channel.warning.acknowledge- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:warnings or moderator:manage:warnings 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:warnings or moderator:manage:warnings scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.warning.acknowledge.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe User ID of the broadcaster.condition.moderator_user_idStringRequiredThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app with the moderator:read:warnings or moderator:manage:warnings scope. To get notifications using the broadcaster's own authorization, set this field to the broadcaster's 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.broadcaster_user_idStringThe User ID of the broadcaster.subscription.condition.moderator_user_idStringThe ID of the broadcaster or one of the broadcaster's moderators. This user must have authorized your app with the moderator:read:warnings or moderator:manage:warnings scope. To get notifications using the broadcaster's own authorization, set this field to the broadcaster's 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.broadcaster_user_idStringThe user ID of the broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe user name of the broadcaster.event.user_idStringThe ID of the user that has acknowledged their warning.event.user_loginStringThe login of the user that has acknowledged their warning.event.user_nameStringThe user name of the user that has acknowledged their warning.
{
"type": "channel.warning.acknowledge",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.warning.acknowledge",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.warning.acknowledge",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.warning.acknowledge",
"version": "1",
"cost": 0,
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z"
},
"event": {
"broadcaster_user_id": "423374343",
"broadcaster_user_login": "glowillig",
"broadcaster_user_name": "glowillig",
"user_id": "141981764",
"user_login": "twitchdev",
"user_name": "TwitchDev"
}
}Channel Warning Send
The channel.warning.send subscription type sends a notification when a warning is sent to a user. Broadcasters and moderators can see the warning's details.
Subscription
- Type
channel.warning.send- Version
1
Authorization
Requires one of the following:
- A user access token that includes the moderator:read:warnings or moderator:manage:warnings 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:warnings or moderator:manage:warnings scope for the user represented by the moderator_user_id event condition.
Subscription Request Body
typeStringRequiredThe subscription type name:channel.warning.send.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe User ID of the broadcaster.condition.moderator_user_idStringRequiredThe ID of the broadcaster or one of the broadcaster's moderators. To use the broadcaster's own authorization, specify the broadcaster's ID. The subscription receives every warning sent in the broadcaster's channel, not only the warnings this user sends.
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.subscription.condition.moderator_user_idStringThe ID of the broadcaster or one of the broadcaster's moderators. To use the broadcaster's own authorization, specify the broadcaster's ID. The subscription receives every warning sent in the broadcaster's channel, not only the warnings this user sends.
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 broadcaster.event.broadcaster_user_loginStringThe login of the broadcaster.event.broadcaster_user_nameStringThe user name of the broadcaster.event.moderator_user_idStringThe user ID of the moderator who sent the warning. If the broadcaster sent the warning, this ID is the same asbroadcaster_user_id.event.moderator_user_loginStringThe login of the moderator.event.moderator_user_nameStringThe user name of the moderator.event.user_idStringThe ID of the user being warned.event.user_loginStringThe login of the user being warned.event.user_nameStringThe user name of the user being warned.event.reasonStringNullableThe reason given for the warning. Is null if the warning doesn't include a custom reason, in which casechat_rules_citedlists at least one rule.event.chat_rules_citedString[]NullableThe chat rules cited for the warning. Is null if the warning doesn't cite any rules (it's never an empty array), in which casereasonis set.
{
"type": "channel.warning.send",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.warning.send",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.warning.send",
"version": "1",
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "7297f7eb-3bf5-461f-8ae6-7cd7781ebce3",
"status": "enabled",
"type": "channel.warning.send",
"version": "1",
"cost": 0,
"condition": {
"broadcaster_user_id": "423374343",
"moderator_user_id": "424596340"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2024-02-23T21:12:33.771005262Z"
},
"event": {
"broadcaster_user_id": "423374343",
"broadcaster_user_login": "glowillig",
"broadcaster_user_name": "glowillig",
"moderator_user_id": "424596340",
"moderator_user_login": "quotrok",
"moderator_user_name": "quotrok",
"user_id": "141981764",
"user_login": "twitchdev",
"user_name": "TwitchDev",
"reason": "cut it out",
"chat_rules_cited": null
}
}