microsoft-sharepoint-webhooks
Installation
SKILL.md
Microsoft SharePoint Webhooks
When to Use This Skill
- Setting up Microsoft SharePoint list or document-library webhook handlers
- Completing the SharePoint
validationtokensubscription handshake - Validating the
clientStateshared secret on incoming notifications - Understanding the thin SharePoint notification payload
- Reacting to list-item changes (ItemAdded, ItemUpdated, ItemDeleted) via the GetChanges API
How SharePoint Webhooks Differ
SharePoint webhooks are not HMAC-signed and are not Standard Webhooks. There is no request signature. Authenticity relies on two things instead:
- Validation handshake — when a subscription is created (or its
notificationUrlchanges), SharePoint POSTs with avalidationtokenquery-string parameter. Your endpoint must echo that exact token back as an HTTP200text/plainbody within ~5 seconds, or the subscription is never created. clientState— an opaque string you set at subscription time. SharePoint echoes it in theclientStatefield of every notification. Compare it to your stored secret as a shared-secret sanity check. It is the only per-message identity signal (not a signature).
Notifications are thin and batched under a value array and carry no change details — you call the list GetChanges API with a stored change token to learn what actually changed.