📅Session Cancelled
session.cancelledv1.0
Triggered when a session is cancelled
Webhook Delivery
This event can be delivered to your webhook endpoint
Real-time Streaming
This event is available via WebSocket or SSE
Event Details
Schema definition and example payload
Event Properties
object
idstring
required
Unique session identifier
reasonstring
Cancellation reason
cancelledBystring
required
ID of user who cancelled
cancelledAtstring
required
date-time
refundsIssuedboolean
Integration Examples
Example code for handling this event
// Handle session.cancelled event
app.post('/webhook', async (req, res) => {
const event = req.body;
if (event.type === 'session.cancelled') {
// Process the event
console.log('Received Session Cancelled:', event.data);
// Your business logic here
// Notify participants
await notifySessionUpdate(event.data);
}
res.status(200).json({ received: true });
});