v2025-02-19
Webhooks now support version documents
Webhooks
You can now run webhooks on version documents. Previously, using sanity.io/manage or the webhooks API, webhooks could be configured to trigger on changes to published or draft documents.
Now, versions from Content Releases can also utilize webhooks. To take advantage of this today, enable the "Trigger webhook when versions are modified" checkbox in sanity.io/manage.
For API users, set the includeAllVersions
property to true
.
Gotcha
As with drafts, running webhooks on version updates can result in rapid requests. The same considerations apply to versions as they do in drafts. Learn more in the GROQ-powered webhooks documentation.