How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

How to debug webhook delivery issues between environments in Sanity?

3 repliesLast updated: Nov 29, 2025

Is there a way to see if a webhook was received correctly or failed? I'm seeing webhooks sucessfully being triggered to my local / dev environment but not to my staging environment. Code handling them are the same and I don't see any requests coming through on staging
AI Update

I understand your frustration with webhooks not reaching your staging environment. Unfortunately, Sanity doesn't currently provide a built-in UI for viewing webhook delivery logs or status directly in the dashboard. This makes debugging webhook issues like yours more challenging.

Here's what you can do to troubleshoot:

Debugging Webhook Delivery

1. Test the webhook endpoint directly Use tools like webhook.site or Beeceptor to create a temporary endpoint and update your webhook configuration to point there. This will help you verify that Sanity is actually sending the webhooks.

2. Check your staging endpoint

3. Monitor webhook attempts on your end Set up logging on your staging server to capture all incoming requests, not just successful ones. This will help you see if requests are arriving but failing.

4. Use Request Logs (Enterprise/Growth plans) If you're on a Growth or Enterprise plan, you can enable Request Logs which will capture webhook delivery attempts. However, this feature delivers logs as NDJSON files rather than a real-time dashboard, and you'll need to filter for webhook-related requests.

Consider Sanity Functions Instead

For your use case, I'd actually recommend considering Sanity Functions instead of webhooks. Functions are the modern, recommended approach for reacting to content changes because:

Functions can handle the same use cases as webhooks but with much better observability. If you need to notify external systems, you can call them from within a Function.

Common Staging Environment Issues

Since your dev environment works but staging doesn't, check:

Without built-in webhook delivery logs, debugging requires checking both ends of the connection. If you continue having issues, consider sharing your webhook configuration and staging setup in the Sanity Community Slack where others might have encountered similar issues.

Show original thread
3 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions