Handle Outlook (Microsoft Graph) change notification
Inbound webhook called by Microsoft Graph when a subscribed mailbox receives a new message. On subscription creation Graph performs a validation handshake by sending a validationToken query parameter, which the endpoint echoes back as plain text. Notification payloads are accepted with 202 and processed asynchronously.
Query Parameters
Sent by Microsoft Graph during subscription validation. When present the endpoint echoes it back as text/plain and skips notification processing.
Body
Microsoft Graph change notification batch.
Array of change notifications Microsoft Graph batches into one request.
Response
Validation handshake — the supplied validationToken is echoed back as plain text.
The response is of type string.