Skip to main content

Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See Getting Started on the Sanity connector page.

How webhooks are set up

StackOne creates a webhook named StackOne in your Sanity project when the account is connected, and deletes it when the account is disconnected. There is nothing to configure in Sanity.

  • The webhook appears in sanity.io/manage under your project > API > Webhooks as StackOne. Leave its URL, dataset and triggers as they are.
  • Draft (drafts.) and release version (versions.) documents are ignored — only changes to published documents fire events.

Available webhook events

These events fire when published documents change in any dataset of the project. Only the events you enable are added to the webhook’s triggers.

  • Document Created (create) — Fired when a new published document is created.
  • Document Updated (update) — Fired on every change to an existing published document.
  • Document Deleted (delete) — Fired when a published document is deleted or unpublished.

Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.