Channel Moderation

Events raised when a moderation event happens on a Twitch channel.

View as markdown
Provide feedback for this page

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

  • typeStringRequired
    The subscription type name: channel.ban.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-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_idStringRequired
      The broadcaster user ID for the channel you want to get ban notifications for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The broadcaster user ID for the channel you want to get ban notifications for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.user_idString
      The user ID for the user who was banned on the specified channel.
    • event.user_loginString
      The user login for the user who was banned on the specified channel.
    • event.user_nameString
      The user display name for the user who was banned on the specified channel.
    • event.broadcaster_user_idString
      The requested broadcaster ID.
    • event.broadcaster_user_loginString
      The requested broadcaster login.
    • event.broadcaster_user_nameString
      The requested broadcaster display name.
    • event.moderator_user_idString
      The 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_loginString
      The 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_nameString
      The 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.reasonString
      The reason behind the ban. Is an empty string if the ban or timeout has no reason.
    • event.banned_atString
      The UTC date and time (in RFC3339 format) of when the user was banned or put in a timeout.
    • event.ends_atStringNullable
      The 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_permanentBoolean
      Indicates whether the ban is permanent (true) or a timeout (false). If true, ends_at will be null.
Subscription Request Body Example
{
  "type": "channel.ban",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "1337"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
    "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
    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:
    • 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

Subscription Request Body

  • typeStringRequired
    The subscription type name: channel.moderate.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The user ID of the broadcaster.
    • condition.moderator_user_idStringRequired
      The 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.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The user ID of the broadcaster.
      • subscription.condition.moderator_user_idString
        The 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_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The ID of the broadcaster.
    • event.broadcaster_user_loginString
      The login of the broadcaster.
    • event.broadcaster_user_nameString
      The user name of the broadcaster.
    • event.source_broadcaster_user_idStringNullable
      The 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_loginStringNullable
      The 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_nameStringNullable
      The 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_idString
      The 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_loginString
      The login of the user who performed the action.
    • event.moderator_user_nameString
      The display name of the user who performed the action.
    • event.actionString
      The type of action: Possible values are.

      Possible values

      • ban
      • timeout
      • unban
      • untimeout
      • clear
      • emoteonly
      • emoteonlyoff
      • followers
      • followersoff
      • uniquechat
      • uniquechatoff
      • slow
      • slowoff
      • subscribers
      • subscribersoff
      • unraid
      • delete
      • unvip
      • vip
      • raid
      • add_blocked_term
      • add_permitted_term
      • remove_blocked_term
      • remove_permitted_term
      • mod
      • unmod
      • approve_unban_request
      • deny_unban_request
      • shared_chat_ban
      • shared_chat_timeout
      • shared_chat_untimeout
      • shared_chat_unban
      • shared_chat_delete
    • event.followersObjectNullable
      Metadata associated with the followers command.
      Hide child attributesShow child attributes
      • event.followers.follow_duration_minutesInteger
        The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room.
    • event.slowObjectNullable
      Metadata associated with the slow command.
      Hide child attributesShow child attributes
      • event.slow.wait_time_secondsInteger
        The amount of time, in seconds, that users need to wait between sending messages.
    • event.vipObjectNullable
      Metadata associated with the vip command.
      Hide child attributesShow child attributes
      • event.vip.user_idString
        The ID of the user gaining VIP status.
      • event.vip.user_loginString
        The login of the user gaining VIP status.
      • event.vip.user_nameString
        The user name of the user gaining VIP status.
    • event.unvipObjectNullable
      Metadata associated with the unvip command.
      Hide child attributesShow child attributes
      • event.unvip.user_idString
        The ID of the user losing VIP status.
      • event.unvip.user_loginString
        The login of the user losing VIP status.
      • event.unvip.user_nameString
        The user name of the user losing VIP status.
    • event.modObjectNullable
      Metadata associated with the mod command.
      Hide child attributesShow child attributes
      • event.mod.user_idString
        The ID of the user gaining mod status.
      • event.mod.user_loginString
        The login of the user gaining mod status.
      • event.mod.user_nameString
        The user name of the user gaining mod status.
    • event.unmodObjectNullable
      Metadata associated with the unmod command.
      Hide child attributesShow child attributes
      • event.unmod.user_idString
        The ID of the user losing mod status.
      • event.unmod.user_loginString
        The login of the user losing mod status.
      • event.unmod.user_nameString
        The user name of the user losing mod status.
    • event.banObjectNullable
      Metadata associated with the ban command.
      Hide child attributesShow child attributes
      • event.ban.user_idString
        The ID of the user being banned.
      • event.ban.user_loginString
        The login of the user being banned.
      • event.ban.user_nameString
        The user name of the user being banned.
      • event.ban.reasonStringNullable
        The reason given for the ban. Is an empty string if no reason was given.
    • event.unbanObjectNullable
      Metadata associated with the unban command.
      Hide child attributesShow child attributes
      • event.unban.user_idString
        The ID of the user being unbanned.
      • event.unban.user_loginString
        The login of the user being unbanned.
      • event.unban.user_nameString
        The user name of the user being unbanned.
    • event.timeoutObjectNullable
      Metadata associated with the timeout command.
      Hide child attributesShow child attributes
      • event.timeout.user_idString
        The ID of the user being timed out.
      • event.timeout.user_loginString
        The login of the user being timed out.
      • event.timeout.user_nameString
        The user name of the user being timed out.
      • event.timeout.reasonStringNullable
        The reason given for the timeout. Is an empty string if no reason was given.
      • event.timeout.expires_atString
        The time at which the timeout ends.
    • event.untimeoutObjectNullable
      Metadata associated with the untimeout command.
      Hide child attributesShow child attributes
      • event.untimeout.user_idString
        The ID of the user being untimed out.
      • event.untimeout.user_loginString
        The login of the user being untimed out.
      • event.untimeout.user_nameString
        The user name of the user untimed out.
    • event.raidObjectNullable
      Metadata associated with the raid command.
      Hide child attributesShow child attributes
      • event.raid.user_idString
        The ID of the user being raided.
      • event.raid.user_loginString
        The login of the user being raided.
      • event.raid.user_nameString
        The user name of the user raided.
      • event.raid.viewer_countInteger
        The viewer count.
    • event.unraidObjectNullable
      Metadata associated with the unraid command.
      Hide child attributesShow child attributes
      • event.unraid.user_idString
        The ID of the user no longer being raided.
      • event.unraid.user_loginString
        The login of the user no longer being raided.
      • event.unraid.user_nameString
        The user name of the no longer user raided.
    • event.deleteObjectNullable
      Metadata associated with the delete command.
      Hide child attributesShow child attributes
      • event.delete.user_idString
        The ID of the user whose message is being deleted.
      • event.delete.user_loginString
        The login of the user.
      • event.delete.user_nameString
        The user name of the user.
      • event.delete.message_idString
        The ID of the message being deleted.
      • event.delete.message_bodyString
        The message body of the message being deleted.
    • event.automod_termsObjectNullable
      Metadata 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.actionString
        Either “add” or “remove”.
      • event.automod_terms.listString
        Either “blocked” or “permitted”.
      • event.automod_terms.termsString[]
        Terms being added or removed.
      • event.automod_terms.from_automodBoolean
        Whether the terms were added due to an Automod message approve/deny action.
    • event.unban_requestObjectNullable
      Metadata associated with an unban request.
      Hide child attributesShow child attributes
      • event.unban_request.is_approvedBoolean
        Whether or not the unban request was approved or denied.
      • event.unban_request.user_idString
        The ID of the banned user.
      • event.unban_request.user_loginString
        The login of the user.
      • event.unban_request.user_nameString
        The user name of the user.
      • event.unban_request.moderator_messageString
        The message included by the moderator explaining their approval or denial.
    • event.shared_chat_banObjectNullable
      Information about the shared_chat_ban event. Is null if action is not shared_chat_ban. This field has the same information as the ban field 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_unbanObjectNullable
      Information about the shared_chat_unban event. Is null if action is not shared_chat_unban. This field has the same information as the unban field 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_timeoutObjectNullable
      Information about the shared_chat_timeout event. Is null if action is not shared_chat_timeout. This field has the same information as the timeout field 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_untimeoutObjectNullable
      Information about the shared_chat_untimeout event. Is null if action is not shared_chat_untimeout. This field has the same information as the untimeout field 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_deleteObjectNullable
      Information about the shared_chat_delete event. Is null if action is not shared_chat_delete. This field has the same information as the delete field but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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.moderate with 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
    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:
    • 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

Subscription Request Body

  • typeStringRequired
    The subscription type name: channel.moderate.
  • versionStringRequired
    The subscription type version: 2.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The user ID of the broadcaster.
    • condition.moderator_user_idStringRequired
      The 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.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The user ID of the broadcaster.
      • subscription.condition.moderator_user_idString
        The 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_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The ID of the broadcaster.
    • event.broadcaster_user_loginString
      The login of the broadcaster.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.source_broadcaster_user_idStringNullable
      The ID of the channel where the action originally took place. Is null unless action is shared_chat_ban, shared_chat_unban, shared_chat_timeout, shared_chat_untimeout or shared_chat_delete.
    • event.source_broadcaster_user_loginStringNullable
      The login of the channel where the action originally took place. Is null unless action is one of the shared_chat_ actions.
    • event.source_broadcaster_user_nameStringNullable
      The display name of the channel where the action originally took place. Is null unless action is one of the shared_chat_ actions.
    • event.moderator_user_idString
      The 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_loginString
      The login of the moderator.
    • event.moderator_user_nameString
      The moderator's display name.
    • event.actionString
      The action performed.

      Possible values

      • ban
      • timeout
      • unban
      • untimeout
      • clear
      • emoteonly
      • emoteonlyoff
      • followers
      • followersoff
      • uniquechat
      • uniquechatoff
      • slow
      • slowoff
      • subscribers
      • subscribersoff
      • unraid
      • delete
      • unvip
      • vip
      • raid
      • add_blocked_term
      • add_permitted_term
      • remove_blocked_term
      • remove_permitted_term
      • mod
      • unmod
      • approve_unban_request
      • deny_unban_request
      • warn
      • shared_chat_ban
      • shared_chat_timeout
      • shared_chat_unban
      • shared_chat_untimeout
      • shared_chat_delete
    • event.followersObjectNullable
      Metadata associated with the followers command.
      Hide child attributesShow child attributes
      • event.followers.follow_duration_minutesInteger
        The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room.
    • event.slowObjectNullable
      Metadata associated with the slow command.
      Hide child attributesShow child attributes
      • event.slow.wait_time_secondsInteger
        The amount of time, in seconds, that users need to wait between sending messages.
    • event.vipObjectNullable
      Metadata associated with the vip command.
      Hide child attributesShow child attributes
      • event.vip.user_idString
        The ID of the user gaining VIP status.
      • event.vip.user_loginString
        The login of the user gaining VIP status.
      • event.vip.user_nameString
        The display name of the user gaining VIP status.
    • event.unvipObjectNullable
      Metadata associated with the unvip command.
      Hide child attributesShow child attributes
      • event.unvip.user_idString
        The ID of the user losing VIP status.
      • event.unvip.user_loginString
        The login of the user losing VIP status.
      • event.unvip.user_nameString
        The display name of the user losing VIP status.
    • event.modObjectNullable
      Metadata associated with the mod command.
      Hide child attributesShow child attributes
      • event.mod.user_idString
        The ID of the user gaining mod status.
      • event.mod.user_loginString
        The login of the user gaining mod status.
      • event.mod.user_nameString
        The display name of the user gaining mod status.
    • event.unmodObjectNullable
      Metadata associated with the unmod command.
      Hide child attributesShow child attributes
      • event.unmod.user_idString
        The ID of the user losing mod status.
      • event.unmod.user_loginString
        The login of the user losing mod status.
      • event.unmod.user_nameString
        The display name of the user losing mod status.
    • event.banObjectNullable
      Metadata associated with the ban command.
      Hide child attributesShow child attributes
      • event.ban.user_idString
        The ID of the user being banned.
      • event.ban.user_loginString
        The login of the user being banned.
      • event.ban.user_nameString
        The display name of the user being banned.
      • event.ban.reasonStringNullable
        The reason given for the ban. Is an empty string if the moderator didn't give a reason.
    • event.unbanObjectNullable
      Metadata associated with the unban command.
      Hide child attributesShow child attributes
      • event.unban.user_idString
        The ID of the user being unbanned.
      • event.unban.user_loginString
        The login of the user being unbanned.
      • event.unban.user_nameString
        The display name of the user being unbanned.
    • event.timeoutObjectNullable
      Metadata associated with the timeout command.
      Hide child attributesShow child attributes
      • event.timeout.user_idString
        The ID of the user being timed out.
      • event.timeout.user_loginString
        The login of the user being timed out.
      • event.timeout.user_nameString
        The display name of the user being timed out.
      • event.timeout.reasonStringNullable
        The reason given for the timeout. Is an empty string if the moderator didn't give a reason.
      • event.timeout.expires_atString
        The time at which the timeout ends.
    • event.untimeoutObjectNullable
      Metadata associated with the untimeout command.
      Hide child attributesShow child attributes
      • event.untimeout.user_idString
        The ID of the user being untimed out.
      • event.untimeout.user_loginString
        The login of the user being untimed out.
      • event.untimeout.user_nameString
        The display name of the user being untimed out.
    • event.raidObjectNullable
      Metadata associated with the raid command.
      Hide child attributesShow child attributes
      • event.raid.user_idString
        The ID of the user being raided.
      • event.raid.user_loginString
        The login of the user being raided.
      • event.raid.user_nameString
        The display name of the user being raided.
      • event.raid.viewer_countInteger
        The viewer count.
    • event.unraidObjectNullable
      Metadata associated with the unraid command.
      Hide child attributesShow child attributes
      • event.unraid.user_idString
        The ID of the user no longer being raided.
      • event.unraid.user_loginString
        The login of the user no longer being raided.
      • event.unraid.user_nameString
        The display name of the user no longer being raided.
    • event.deleteObjectNullable
      Metadata associated with the delete command.
      Hide child attributesShow child attributes
      • event.delete.user_idString
        The ID of the user whose message is being deleted.
      • event.delete.user_loginString
        The login of the user.
      • event.delete.user_nameString
        The display name of the user.
      • event.delete.message_idString
        The ID of the message being deleted.
      • event.delete.message_bodyString
        The message body of the message being deleted.
    • event.automod_termsObjectNullable
      Metadata associated with the automod terms changes.
      Hide child attributesShow child attributes
      • event.automod_terms.actionString
        Either “add” or “remove”.
      • event.automod_terms.listString
        Either “blocked” or “permitted”.
      • event.automod_terms.termsString[]
        Terms being added or removed.
      • event.automod_terms.from_automodBoolean
        Whether the terms were added due to an Automod message approve/deny action.
    • event.unban_requestObjectNullable
      Metadata associated with an unban request.
      Hide child attributesShow child attributes
      • event.unban_request.is_approvedBoolean
        Whether or not the unban request was approved or denied.
      • event.unban_request.user_idString
        The ID of the banned user.
      • event.unban_request.user_loginString
        The login of the user.
      • event.unban_request.user_nameString
        The display name of the user.
      • event.unban_request.moderator_messageString
        The message included by the moderator explaining their approval or denial.
    • event.warnObjectNullable
      Metadata associated with the warn command.
      Hide child attributesShow child attributes
      • event.warn.user_idString
        The ID of the user being warned.
      • event.warn.user_loginString
        The login of the user being warned.
      • event.warn.user_nameString
        The display name of the user being warned.
      • event.warn.reasonStringNullable
        Reason given for the warning.
      • event.warn.chat_rules_citedString[]Nullable
        Chat rules cited for the warning.
    • event.shared_chat_banObjectNullable
      Information about the shared_chat_ban event. Is null if action is not shared_chat_ban. This field has the same information as the ban field 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_unbanObjectNullable
      Information about the shared_chat_unban event. Is null if action is not shared_chat_unban. This field has the same information as the unban field 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_timeoutObjectNullable
      Information about the shared_chat_timeout event. Is null if action is not shared_chat_timeout. This field has the same information as the timeout field 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_untimeoutObjectNullable
      Information about the shared_chat_untimeout event. Is null if action is not shared_chat_untimeout. This field has the same information as the untimeout field 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_deleteObjectNullable
      Information about the shared_chat_delete event. Is null if action is not shared_chat_delete. This field has the same information as the delete field but for a action that happened for a channel in a shared chat session other than the broadcaster in the subscription condition.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.moderator.add.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-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_idStringRequired
      The broadcaster user ID for the channel you want to get moderator addition notifications for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The broadcaster user ID for the channel you want to get moderator addition notifications for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The requested broadcaster ID.
    • event.broadcaster_user_loginString
      The requested broadcaster login.
    • event.broadcaster_user_nameString
      The requested broadcaster display name.
    • event.user_idString
      The user ID of the new moderator.
    • event.user_loginString
      The user login of the new moderator.
    • event.user_nameString
      The display name of the new moderator.
Subscription Request Body Example
{
  "type": "channel.moderator.add",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "1337"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
    "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

  • typeStringRequired
    The subscription type name: channel.moderator.remove.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-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_idStringRequired
      The broadcaster user ID for the channel you want to get moderator removal notifications for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The broadcaster user ID for the channel you want to get moderator removal notifications for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The requested broadcaster ID.
    • event.broadcaster_user_loginString
      The requested broadcaster login.
    • event.broadcaster_user_nameString
      The requested broadcaster display name.
    • event.user_idString
      The user ID of the removed moderator.
    • event.user_loginString
      The user login of the removed moderator.
    • event.user_nameString
      The display name of the removed moderator.
Subscription Request Body Example
{
  "type": "channel.moderator.remove",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "1337"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
    "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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.shield_mode.begin.
  • versionStringRequired
    The definition of the subscription request to use. Must be set to 1.
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when Shield Mode is activated in their channel.
    • condition.moderator_user_idStringRequired
      The ID of the broadcaster or one of the broadcaster's moderators.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when Shield Mode is activated in their channel.
      • subscription.condition.moderator_user_idString
        The ID of the broadcaster or one of the broadcaster's moderators.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster whose Shield Mode status was updated.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.moderator_user_idString
      An ID that identifies the moderator that updated the Shield Mode's status. If the broadcaster updated the status, this ID will be the same as broadcaster_user_id.
    • event.moderator_user_loginString
      The moderator's login name.
    • event.moderator_user_nameString
      The moderator's display name.
    • event.started_atString
      The UTC timestamp (in RFC3339 format) of when the moderator activated Shield Mode. The object includes this field only for channel.shield_mode.begin events.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.shield_mode.end.
  • versionStringRequired
    The definition of the subscription request to use. Must be set to 1.
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when Shield Mode is deactivated in their channel.
    • condition.moderator_user_idStringRequired
      The ID of the broadcaster or one of the broadcaster's moderators.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when Shield Mode is deactivated in their channel.
      • subscription.condition.moderator_user_idString
        The ID of the broadcaster or one of the broadcaster's moderators.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster whose Shield Mode status was updated.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.moderator_user_idString
      An ID that identifies the moderator that updated the Shield Mode's status. If the broadcaster updated the status, this ID will be the same as broadcaster_user_id.
    • event.moderator_user_loginString
      The moderator's login name.
    • event.moderator_user_nameString
      The moderator's display name.
    • event.ended_atString
      The UTC timestamp (in RFC3339 format) of when the moderator deactivated Shield Mode. The object includes this field only for channel.shield_mode.end events.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.suspicious_user.message.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.moderator_user_idStringRequired
      The 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_idStringRequired
      User ID of the channel to receive chat message events for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.moderator_user_idString
        The 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_idString
        User ID of the channel to receive chat message events for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The ID of the channel where the suspicious user sent the message.
    • event.broadcaster_user_nameString
      The display name of the channel where the suspicious user sent the message.
    • event.broadcaster_user_loginString
      The login of the channel where the suspicious user sent the message.
    • event.user_idString
      The user ID of the user that sent the message.
    • event.user_nameString
      The display name of the user that sent the message.
    • event.user_loginString
      The user login of the user that sent the message.
    • event.low_trust_statusString
      The status set for the suspicious user.

      Possible values

      • active_monitoring
        The user is being monitored. Their messages appear in chat.
      • restricted
        The user is restricted. Their messages are withheld from chat.
    • event.shared_ban_channel_idsString[]Nullable
      The 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_added
      • ban_evader
      • banned_in_shared_channel
    • event.ban_evasion_evaluationString
      A ban evasion likelihood value that Twitch applied to the user automatically.

      Possible values

      • possible
        The user is possibly evading a ban.
      • likely
        The user is likely evading a ban.
      • unknown
        Twitch hasn't evaluated the user, or evaluated them as unlikely to be evading a ban.
    • event.messageObject
      The structured chat message.
      Hide child attributesShow child attributes
      • event.message.message_idString
        The UUID that identifies the message.
      • event.message.textString
        The chat message in plain text.
      • event.message.fragmentsObject[]
        Ordered list of chat message fragments.
        Hide child attributesShow child attributes
        • event.message.fragments.typeString
          The type of message fragment.

          Possible values

          • text
          • cheermote
          • emote
        • event.message.fragments.textString
          Message text in fragment.
        • event.message.fragments.cheermoteObjectNullable
          Metadata pertaining to the cheermote.
          Hide child attributesShow child attributes
          • event.message.fragments.cheermote.prefixString

            The 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.bitsInteger
            The amount of Bits cheered.
          • event.message.fragments.cheermote.tierInteger
            The 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 a tier of 100.
        • event.message.fragments.emoteObjectNullable
          Metadata pertaining to the emote.
          Hide child attributesShow child attributes
          • event.message.fragments.emote.idString
            An ID that uniquely identifies this emote.
          • event.message.fragments.emote.emote_set_idString
            An ID that identifies the emote set that the emote belongs to.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.suspicious_user.update.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.moderator_user_idStringRequired
      The 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_idStringRequired
      The ID of the broadcaster whose suspicious user status changes you want to get notifications for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.moderator_user_idString
        The 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_idString
        The ID of the broadcaster whose suspicious user status changes you want to get notifications for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The ID of the channel where the treatment for a suspicious user was updated.
    • event.broadcaster_user_nameString
      The display name of the channel where the treatment for a suspicious user was updated.
    • event.broadcaster_user_loginString
      The Login of the channel where the treatment for a suspicious user was updated.
    • event.moderator_user_idString
      The ID of the broadcaster or moderator who changed the status.
    • event.moderator_user_nameString
      The display name of the user who changed the status.
    • event.moderator_user_loginString
      The login name of the user who changed the status.
    • event.user_idString
      The ID of the suspicious user whose treatment was updated.
    • event.user_nameString
      The display name of the suspicious user whose treatment was updated.
    • event.user_loginString
      The login of the suspicious user whose treatment was updated.
    • event.low_trust_statusString
      The suspicious user status that the broadcaster or moderator set for the user.

      Possible values

      • active_monitoring
        The user is marked as monitored.
      • restricted
        The user is marked as restricted.
      • no_treatment
        The user's suspicious user status was removed.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.unban.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-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_idStringRequired
      The broadcaster user ID for the channel you want to get unban notifications for.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The broadcaster user ID for the channel you want to get unban notifications for.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.user_idString
      The user id for the user who was unbanned on the specified channel.
    • event.user_loginString
      The user login for the user who was unbanned on the specified channel.
    • event.user_nameString
      The user display name for the user who was unbanned on the specified channel.
    • event.broadcaster_user_idString
      The requested broadcaster ID.
    • event.broadcaster_user_loginString
      The requested broadcaster login.
    • event.broadcaster_user_nameString
      The requested broadcaster display name.
    • event.moderator_user_idString
      The user ID of the issuer of the unban.
    • event.moderator_user_loginString
      The user login of the issuer of the unban.
    • event.moderator_user_nameString
      The user display name of the issuer of the unban.
Subscription Request Body Example
{
  "type": "channel.unban",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "1337"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
    "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

  • typeStringRequired
    The subscription type name: channel.unban_request.create.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.moderator_user_idStringRequired
      The 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_idStringRequired
      The ID of the broadcaster you want to get chat unban request notifications for. Maximum: 1.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.moderator_user_idString
        The 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_idString
        The ID of the broadcaster you want to get chat unban request notifications for. Maximum: 1.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      The ID of the unban request.
    • event.broadcaster_user_idString
      The broadcaster's user ID for the channel the unban request was created for.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.user_idString
      User ID of user that is requesting to be unbanned.
    • event.user_loginString
      The user's login name.
    • event.user_nameString
      The user's display name.
    • event.textString
      Message sent in the unban request. Is an empty string if the user didn't include a message.
    • event.created_atString
      The 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 the created_at value that Get Unban Requests returns for the same request.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.unban_request.resolve.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.moderator_user_idStringRequired
      The 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_idStringRequired
      The ID of the broadcaster you want to get unban request resolution notifications for. Maximum: 1.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.moderator_user_idString
        The 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_idString
        The ID of the broadcaster you want to get unban request resolution notifications for. Maximum: 1.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      The ID of the unban request.
    • event.broadcaster_user_idString
      The broadcaster's user ID for the channel the unban request was updated for.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.moderator_user_idStringNullable
      The 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_loginStringNullable
      The login name of the broadcaster or moderator who approved or denied the request. Is null in the same cases as moderator_user_id.
    • event.moderator_user_nameStringNullable
      The display name of the broadcaster or moderator who approved or denied the request. Is null in the same cases as moderator_user_id.
    • event.user_idString
      User ID of user that requested to be unbanned.
    • event.user_loginString
      The user's login name.
    • event.user_nameString
      The user's display name.
    • event.resolution_textStringNullable
      The 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.statusString
      The request's resolution.

      Possible values

      • approved
        The broadcaster or a moderator approved the request, or the user was unbanned while the request was pending.
      • canceled
        The user canceled their request.
      • denied
        The broadcaster or a moderator denied the request.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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.

Note

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

  • typeStringRequired
    The subscription type name: channel.warning.acknowledge.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The User ID of the broadcaster.
    • condition.moderator_user_idStringRequired
      The 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.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The User ID of the broadcaster.
      • subscription.condition.moderator_user_idString
        The 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_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The user ID of the broadcaster.
    • event.broadcaster_user_loginString
      The login of the broadcaster.
    • event.broadcaster_user_nameString
      The user name of the broadcaster.
    • event.user_idString
      The ID of the user that has acknowledged their warning.
    • event.user_loginString
      The login of the user that has acknowledged their warning.
    • event.user_nameString
      The user name of the user that has acknowledged their warning.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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

  • typeStringRequired
    The subscription type name: channel.warning.send.
  • versionStringRequired
    The subscription type version: 1.
  • conditionObjectRequired
    Subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The User ID of the broadcaster.
    • condition.moderator_user_idStringRequired
      The 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.
  • transportObjectRequired
    Transport-specific parameters.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The 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.secretString

      The 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_idString

      An 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_idString

      An 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

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The User ID of the broadcaster.
      • subscription.condition.moderator_user_idString
        The 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_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.broadcaster_user_idString
      The user ID of the broadcaster.
    • event.broadcaster_user_loginString
      The login of the broadcaster.
    • event.broadcaster_user_nameString
      The user name of the broadcaster.
    • event.moderator_user_idString
      The user ID of the moderator who sent the warning. If the broadcaster sent the warning, this ID is the same as broadcaster_user_id.
    • event.moderator_user_loginString
      The login of the moderator.
    • event.moderator_user_nameString
      The user name of the moderator.
    • event.user_idString
      The ID of the user being warned.
    • event.user_loginString
      The login of the user being warned.
    • event.user_nameString
      The user name of the user being warned.
    • event.reasonStringNullable
      The reason given for the warning. Is null if the warning doesn't include a custom reason, in which case chat_rules_cited lists at least one rule.
    • event.chat_rules_citedString[]Nullable
      The chat rules cited for the warning. Is null if the warning doesn't cite any rules (it's never an empty array), in which case reason is set.
Subscription Request Body Example
{
  "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"
  }
}
Event Payload Example
{
  "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
  }
}