Conduit Shard Disabled
The conduit.shard.disabled subscription type sends a notification when a conduit shard that was
enabled changes to any other status, for example when the shard's WebSocket session disconnects
or its webhook callback fails too many notifications.
You also will receive it when using Update Conduit Shards to assign a webhook to an enabled shard. In this case, the shard's status will become webhook_callback_verification_pending, and no further notification is sent if the callback then fails verification.
This event is not received for shards that weren't enabled (for example, a newly assigned webhook that fails callback verification), or for shards removed because you reduced the conduit's shard count or deleted the conduit.
You can't create this subscription with the WebSocket transport.
Subscription
- Type
conduit.shard.disabled- Version
1
Authorization
Requires one of the following:
- An app access token.The Client ID in the token must match the client_id specified in the condition.
Subscription Request Body
typeStringRequiredThe subscription type name:conduit.shard.disabled.versionStringRequiredThe subscription type version:1.conditionObjectRequiredSubscription-specific parameters. Optionally pass in the conduit ID for the conduit you want to receive events for.Hide child attributesShow child attributes
condition.client_idStringRequiredYour application's client id. The provided client_id must match the client ID in the application access token.condition.conduit_idStringThe ID of one of your conduits to receive events for. If it isn't one of your conduits, the subscription never receives notifications. If omitted, events for all of this client's conduits are sent.
transportObjectRequiredTransport-specific parameters.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.
Required if method is webhook. Don't specify it for other methods.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Required if method is webhook. Don't specify it for other methods.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Required if method is websocket. Don't specify it for other methods.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Required if method is conduit. Don't specify it for other methods.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.client_idStringYour application's client id. The provided client_id must match the client ID in the application access token.subscription.condition.conduit_idStringThe ID of one of your conduits to receive events for. If it isn't one of your conduits, the subscription never receives notifications. If the subscription doesn't specify a conduit, this is an empty string and events for all of this client's conduits are sent.
subscription.created_atStringThe UTC date and time (in RFC3339 format) of when the subscription was created.subscription.transportObjectThe transport that the notification was sent over.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. Included only ifmethodis webhook.subscription.transport.session_idStringThe ID of the WebSocket session that notifications are sent to. Included only ifmethodis websocket.subscription.transport.conduit_idStringThe ID of the conduit that notifications are sent to. Included only ifmethodis conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.conduit_idStringThe ID of the conduit.event.shard_idStringThe ID of the disabled shard.event.statusStringThe shard's new status.Possible values
webhook_callback_verification_pendingThe shard is pending verification of the specified callback URL. You get this status when you use Update Conduit Shards to assign a webhook callback to an enabled shard.webhook_callback_verification_failedThe specified callback URL failed verification.notification_failures_exceededThe notification delivery failure rate was too high.websocket_disconnectedThe client closed the connection.websocket_failed_ping_pongThe client failed to respond to a ping message.websocket_received_inbound_trafficThe client sent a non-pong message.websocket_internal_errorThe Twitch WebSocket server experienced an unexpected error. Please report this issue on our issue tracker.websocket_network_timeoutThe Twitch WebSocket server timed out writing the message to the client.websocket_network_errorThe Twitch WebSocket server experienced a network error writing the message to the client.websocket_failed_to_reconnectThe client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message.
event.transportObjectThe shard's transport. If the shard was disabled because its WebSocket session disconnected or its webhook callback failed, this is that transport. If you assigned the shard a new webhook callback, this is the new callback.Hide child attributesShow child attributes
event.transport.methodStringwebsocket or webhookevent.transport.callbackStringNullableWebhook callback URL. Null ifmethodis set to websocket.event.transport.session_idStringNullableWebSocket session ID. Null ifmethodis set to webhook.event.transport.connected_atStringNullableTime that the WebSocket session connected. Null ifmethodis set to webhook.event.transport.disconnected_atStringNullableTime that the WebSocket session disconnected. Null ifmethodis set to webhook.
{
"type": "conduit.shard.disabled",
"version": "1",
"condition": {
"client_id": "uo6dggojyb8d6soh92zknwmi5ej1q2"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "conduit.shard.disabled",
"version": "1",
"condition": {
"client_id": "uo6dggojyb8d6soh92zknwmi5ej1q2"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "conduit.shard.disabled",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"client_id": "uo6dggojyb8d6soh92zknwmi5ej1q2",
"conduit_id": ""
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2023-04-11T10:11:12.123Z"
},
"event": {
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac",
"shard_id": "4",
"status": "websocket_disconnected",
"transport": {
"method": "websocket",
"callback": null,
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB",
"connected_at": "2020-11-10T14:32:18Z",
"disconnected_at": "2020-11-11T14:32:18Z"
}
}
}