📅Session Created
session.createdv1.0
Triggered when a new session is created by an instructor
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
instructorIdstring
required
ID of the instructor
sessionTypestring
required
Type of session
startTimestring
required
date-time
Session start time
endTimestring
required
date-time
Session end time
maxCapacitynumber
Maximum number of participants
pricenumber
Session price in cents
locationobject
typestring
Enum:
onlinein-personaddressstring
meetingLinkstring
Integration Examples
Example code for handling this event
// Handle session.created event
app.post('/webhook', async (req, res) => {
const event = req.body;
if (event.type === 'session.created') {
// Process the event
console.log('Received Session Created:', event.data);
// Your business logic here
// Notify participants
await notifySessionUpdate(event.data);
}
res.status(200).json({ received: true });
});