Webhooks
Manage webhooks for your projects.
Types
Sanity provides two types of webhooks, transaction and document. Currently document webhooks are preferred because they are more flexible and powerful.
Document
A document webhook triggers every time a document is created, updated, or deleted. If a transaction updates 3 documents, 3 webhooks will be executed. Document webhook also allows for more granular filtering and customizable payloads with GROQ.
Transaction
A transaction webhook triggers once per dataset, meaning if you batch together multiple document mutations in one transaction only one webhook will be executed.
Base API server URL
Sanity API base URL
https://{projectId}.api.sanity.io/{apiVersion}
Variables
- projectIdstringdefault:
"projectId"
Project ID
- apiVersionstringdefault:
"v2025-02-19"
API version