BlogContentful Webhooks

How to Test Contentful Webhooks

Contentful webhooks fire when entries, assets, or content models change so you can rebuild sites and sync content automatically.

Looking for the broader picture? See the 7 best webhook testing tools (2026), or if you're already on Webhook.site, the 60-second migration to HookRay.

Contentful Official Webhook Docs

1. Contentful Webhook Events

Contentful can send the following webhook events to your endpoint:

ContentManagement.Entry.save
ContentManagement.Entry.publish
ContentManagement.Entry.unpublish
ContentManagement.Asset.publish
ContentManagement.Asset.unpublish
ContentManagement.ContentType.save

2. Set Up a Test Endpoint with HookRay

Follow these steps to start receiving Contentful webhooks for testing:

  1. Go to HookRay and click "Start Testing — Free" to get your unique webhook URL.
  2. Copy the URL (e.g., https://h.hookray.com/abc123).
  3. In your Contentful dashboard, navigate to the webhook settings and paste the HookRay URL as your endpoint.
  4. Select the events you want to receive (see list above).
  5. Trigger a test event — HookRay will show the incoming webhook in real-time.

3. Sample Contentful Webhook Payload

Here's an example of what a Contentful webhook payload looks like:

payload.json
{
  "sys": {
    "id": "7fA91YZmRzQk8DkP1o3X2n",
    "type": "Entry",
    "contentType": {
      "sys": {
        "id": "blogPost"
      }
    },
    "environment": {
      "sys": {
        "id": "master"
      }
    }
  },
  "fields": {
    "title": {
      "en-US": "Webhook Testing with HookRay"
    },
    "slug": {
      "en-US": "webhook-testing-with-hookray"
    }
  },
  "metadata": {
    "tags": []
  }
}

4. Frequently Asked Questions

How do I test Contentful webhooks without deploying?

Use HookRay to get an instant public webhook URL. Paste it into your Contentful dashboard's webhook configuration, trigger an event, and watch the payload arrive in real time. No code, no ngrok, no deployment required. The free tier captures 100 requests per month and works on all Contentful event types.

Why aren't my Contentful webhooks arriving?

The four most common causes: (1) the endpoint URL isn't publicly accessible — Contentful can't reach localhost; (2) the wrong events are subscribed in your Contentful dashboard; (3) signature verification is rejecting the request before your handler runs; (4) Contentful can't reach your server because of a firewall, expired SSL certificate, or wrong DNS. Use HookRay's URL to isolate which of these four is failing — if HookRay receives the webhook, the problem is in your handler. If HookRay doesn't, the problem is in Contentful configuration.

Why am I getting 400 or 500 errors from my Contentful webhook?

Contentful reports the response status your endpoint returned. HookRay accepts any payload and returns 200 OK by default, so if you see 400/500 in your Contentful dashboard while pointing at HookRay, the issue is in Contentful's configuration (wrong event, malformed signing secret, etc.). If you point at your own endpoint and get 400/500, the issue is in your handler — capture the request with HookRay, replay it locally, and debug from the captured payload.

How do I verify Contentful webhook signatures?

Contentful signs each webhook request with a shared secret. Capture the raw headers and body using HookRay, then verify the signature in your application using Contentful's SDK or a standard HMAC library. Once verification works against HookRay-captured data, you can safely deploy. Contentful's docs (linked above) cover the exact signing algorithm.

Can I replay a captured Contentful webhook?

Yes — HookRay's replay feature re-sends any captured webhook to a different endpoint with one click. This is the fastest way to fix a buggy handler: capture the payload once, fix your code, and replay until it works. No need to re-trigger the event in Contentful.

5. Next Steps

  • Use HookRay's webhook replay feature to re-send captured webhooks while building your handler
  • Enable smart parsing (Pro plan) to see Contentful-specific fields highlighted automatically
  • Check the Contentful webhook documentation for the complete event reference

Ready to test Contentful webhooks?

Get a free webhook URL in 5 seconds. No signup required.

Start Testing Contentful Webhooks — Free

Free PDF: Webhook Testing Cheat Sheet 2026

One-page reference for 50+ APIs — canonical events, signing methods, sample payloads. Print it, pin it, share it.

📄 Download the cheat sheet (PDF, 180KB)