Sanity · Arazzo Workflow
Sanity Register Webhook for Query
Version 1.0.0
Validate a GROQ filter, register a webhook on it, then list webhooks.
View Spec
View on GitHub
Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows
Provider
Workflows
register-webhook-for-query
Confirm a GROQ filter resolves, then register and verify a webhook on it.
Runs the GROQ filter as a query to validate it, creates a webhook bound to that filter and the requested event types, and lists the project's webhooks to confirm the new webhook is present.
1
validateFilter
queryDocumentsPost
Run the GROQ filter as a query so an invalid filter is caught before a webhook is registered against it.
2
createWebhook
createWebhook
Register a webhook bound to the validated GROQ filter and the requested document event types.
3
listWebhooks
listWebhooks
List the project's webhooks to confirm the new webhook is present.