Create a new webhook event handler.
Your webhook secret from the Contio dashboard
Verify and handle a webhook payload.
Verifies the signature, parses the payload, and dispatches to registered handlers.
Raw request body (string or Buffer)
Signature from X-Contio-Signature header
Check if a handler is registered for a specific event type.
Register a handler for a specific event type.
The handler receives a fully typed event object based on the event type.
The event type to handle (e.g., 'meeting.created')
Async or sync handler function
this for chaining
Register a catch-all handler for any event type.
This is called for every event, regardless of whether a specific handler exists. Useful for logging or metrics.
Handler function receiving any webhook event
this for chaining
Typed webhook handler with fluent registration API.
Provides type-safe
.on()method for registering event handlers, with full TypeScript inference for event payloads.