Conduit Shard Disabled
The conduit.shard.disabled subscription type sends a notification when EventSub disables a shard due to the status of the underlying transport changing.
Subscription
- Type
conduit.shard.disabled- Version
1
Authorization
Requires one of the following:
- An app access token.The Client ID of the token used must match the Client ID in the condition. If conduit_id is specified, the client must be the owner of the conduit.
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 conduit ID to receive events for. 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. See Processing an Event.
Specify this field only if method is set to webhook.
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.
Specify this field only if the method is set to webhook.
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.
Specify this field only if the method is set to websocket.
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.
Specify this field only if the method is set to conduit.
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 conduit ID to receive events for. If omitted, events for all of this client's conduits are sent.
subscription.created_atStringThe time the notification was created.subscription.transportObjectTransport-specific parameters.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method for EventSub.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
subscription.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.
Specify this field only if the method is set to webhook.
subscription.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.
Specify this field only if the method is set to websocket.
subscription.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.
Specify this field only if the method is set to 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 new status of the transport.event.transportObjectThe disabled transport.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": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"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"
},
"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",
"session_id": "ad1c9fc3-0d99-4eb7-8a04-8608e8ff9ec9",
"connected_at": "2020-11-10T14:32:18.730260295Z",
"disconnected_at": "2020-11-11T14:32:18.730260295Z"
}
}
}