Google Calendar Webhooks
All available Google Calendar webhook events
The Google Calendar plugin automatically handles incoming webhooks from Google Calendar. Configure Google Calendar push notifications to receive real-time updates when events change.
New to Corsair? Learn about core concepts like webhooks, hooks, and multi-tenancy before setting up webhook handlers.
Full Implementation: For the complete, up-to-date list of all webhook events and their implementations, see the Google Calendar plugin source code on GitHub.
Setup
Configure your webhook endpoint to handle Google Calendar events:
import { processWebhook } from "corsair";
import { corsair } from "@/server/corsair";
export async function POST(request: Request) {
const headers = Object.fromEntries(request.headers);
const body = await request.json();
const result = await processWebhook(corsair, headers, body);
return result.response;
}Available Webhooks
onEventChanged
events.onEventChanged
Fires when a calendar event is created, updated, or deleted.
Example Usage:
googlecalendar({
webhookHooks: {
events: {
onEventChanged: {
after: async (ctx, result) => {
console.log("Event created:", result.data.summary);
},
},
},
},
})See Webhooks for more details on webhook concepts and Hooks for the complete hooks documentation.