Webhook map
contactsnewContact(contacts.newContact)
eventseventChange(events.eventChange)newEvent(events.newEvent)
messagesnewMessage(messages.newMessage)sentMessage(messages.sentMessage)
subscriptionValidation(subscriptionValidation)
HTTP handler setup
app/api/webhook/route.ts
Events
Contacts
New Contact
contacts.newContact
Triggered when a new contact is added in Outlook contacts
Payload
value full type
value full type
Response data full type
Response data full type
webhookHooks example
Events
Event Change
events.eventChange
Triggered when a calendar event is created, updated, or deleted
Payload
value full type
value full type
Response data full type
Response data full type
webhookHooks example
New Event
events.newEvent
Triggered when a new calendar event is created
Payload
value full type
value full type
Response data full type
Response data full type
webhookHooks example
Messages
New Message
messages.newMessage
Triggered when a new message is received in the Outlook mailbox
Payload
value full type
value full type
Response data full type
Response data full type
webhookHooks example
Sent Message
messages.sentMessage
Triggered when a message is sent from the Outlook mailbox
Payload
value full type
value full type
Response data full type
Response data full type
webhookHooks example
Subscription Validation
Subscription Validation
subscriptionValidation
Microsoft Graph subscription validation handshake
Payload
Response data full type
Response data full type
webhookHooks example