Webhook endpoint used by Microsoft Graph for email notification events. - During subscription setup, Microsoft Graph sends a validation token as a query parameter, which must be echoed back. - For subsequent notifications, Microsoft Graph sends email event data in the request body. - This endpoint does not require authentication since it’s called by Microsoft servers.
| Parameter | Type | Required | Description |
|---|---|---|---|
| validationToken | string | No | Validation token sent by Microsoft Graph during webhook registration |
| Field | Type | Required | Description |
|---|---|---|---|
| value | array | No | Array of Microsoft Graph notification objects |
| subscriptionId | string | No | Unique subscription identifier |
| changeType | string | No | Type of change (created, updated, deleted) |
| resource | string | No | Resource identifier |
| resourceData | object | No | Data about the changed resource |
| Change Type | Description | Action Taken |
|---|---|---|
| created | New email received | Analyze email, update stats |
| updated | Email modified | Re-analyze if needed |
| deleted | Email deleted | Update statistics accordingly |
Validation token sent by Microsoft Graph during webhook registration. The API must return this token as plain text to validate the subscription.
Array of Microsoft Graph notification objects.
Successfully processed the webhook event or returned validation token
The response is of type string.
"ValidationTokenExample123456"