Strapi webhooks for content change events

Strapi webhooks notify search indexes, caches and static site builds when content changes. This page covers the events, payload contents, headers and what webhooks leave out.

On this page

When Strapi webhooks are the right way to notify downstream systems

Strapi webhooks are the right choice when a search index, cache or static site build needs to hear about content changes and a simple HTTP call is enough to trigger the work. Strapi fires webhooks on content events such as entry.create and media.create, and each event sends an HTTP request to an endpoint your team defines. Editors publish, the request goes out, and your downstream system starts its refresh, rebuild or purge. Endpoints, default headers and the other delivery settings are configured in the server configuration, so the setup lives in code your team can review and version.

Webhooks fit best when the receiving system can process each event quickly and tolerate an occasional duplicate or out-of-order call. A cache purge or a build trigger usually meets that bar. They fit less well when one editorial action must update several systems reliably, when the receiver is slow or often unavailable, or when you need to transform, batch or deduplicate events before acting. In those cases, place a queue or a small custom service between Strapi and the consumers, and let that layer handle retries, ordering and fan-out. Confirm the exact retry and delivery behavior in the Strapi webhooks documentation for your version before you rely on it, because a failed delivery is not something your application code can assume will be retried for you.

Before you commit, decide which events each consumer needs and whether a notification is enough or the consumer must fetch fresh data. Check how the receiver authenticates requests, since Strapi sends the payload to whatever URL you configure. Also confirm what the payload contains for your content types, because the webhook is a notification and not a full replication channel. Illustrative example: a static site build that rebuilds on every publish may be fine with a single trigger, while a search index that must reflect bulk edits may need the queue pattern described above.

Which webhook events to subscribe to and when each fits

This table pairs each Strapi entry and media event with the downstream work it usually supports, such as reindexing, cache purge or triggering a build. Read it by starting from the system you are notifying, then subscribing only to the events that change what that system must show. Confirm the exact event list against the Strapi webhooks documentation for your installed version before you build the receiver.

EventTypical downstream usePayload carries full entryNotes for the receiver
entry.createIndex a new document or warm a cache keyYesFires when a new entry is created; the receiver should handle a document that is not yet published.
entry.updateReindex changed fields or purge affected pagesYesFires on saves, so a single editing session can send several events; debounce before rebuilding.
entry.publishTrigger a static site build or purge public cachesYesThe main event for production builds, since it reflects what visitors should now see.
entry.unpublishRemove a document from a public index or cacheNoPayload is sent without a re-read, so the receiver should key deletion on the entry ID and document ID it receives.
entry.deleteRemove a document from search, caches or buildsNoPayload is sent without a re-read; expect the entry to be gone from Strapi when the receiver processes it.
media.createProcess new assets, such as resizing or CDN warm-upNot applicableUse for media-driven pipelines; check the payload fields in your version before relying on them.
media.updateRefresh CDN copies or derived image variantsNot applicableChanges to file metadata may not replace the stored file, so confirm which fields trigger the event.
media.deleteRemove derived files or CDN copiesNot applicableEnsure the receiver can locate derived files from the media ID, since the source file is already removed.

How to configure a Strapi webhook from admin to receiver

This sequence takes a Strapi project from a receiver endpoint to a verified webhook, with each step confirmed before the next one starts. The result is a configuration that sends content change events to your search index, cache or build system and survives restarts and redeploys.

  1. Define the receiver endpoint and its requirements

    Before touching Strapi, the team that owns the receiving system confirms the URL it will expose, the HTTP method it accepts, and any shared secret or authorization header it expects. Platform engineering records these values in the change ticket so the Strapi side uses the same details. Done means the receiver's URL is reachable from the Strapi host and the owners agree on the header names and values.

  2. Set the endpoint and default headers in config/server

    The Strapi developer adds the webhook settings to the project's config/server file, including the default headers that every webhook request will send, such as a token header for the receiver to check. Values for secrets should come from environment variables rather than being written into the file. Done means the project starts without configuration errors and the keys match the names agreed in the previous step.

  3. Create the webhook in the admin panel

    An administrator opens the Settings area of the Strapi admin panel, goes to the webhooks section and creates a new webhook with a name, the receiver URL and any headers that are set per webhook. Done means the webhook appears in the list with the status enabled and the URL matches the receiver's address.

  4. Choose the events the receiver needs

    The team selects only the events the downstream system acts on, such as entry create, update and publish events for the content types that feed the index or site build, and media events if images are used. Each selected event is noted against the consuming system, so a later change to the content model can be checked against it. Done means the event list is written down and matches the consumer's requirements, and the Users content type is not expected to produce events, since Strapi does not trigger webhooks for it.

  5. Test with a logging receiver

    The team points the webhook at a temporary receiver that writes each request body and headers to a log. An editor then creates, updates and publishes a test entry and uploads a test media file. Done means the receiver logs one request per selected event, the headers match the values set in config/server, and the entry payload includes the relations, components or media the content type contains.

  6. Switch to the production receiver and confirm persistence

    The temporary receiver is replaced with the production consumer, and the Strapi instance is restarted or redeployed through the normal pipeline. The team then checks the admin panel and sends one more test event to confirm the webhook, its headers and its event selection are still in place. Done means the configuration survives the restart, and the receiver accepts the event with the expected headers and payload.

  7. Record the configuration and confirm the receiver handles failures

    The team documents the webhook name, events, header names and receiver owner in the runbook, and confirms with the consuming system's owner how it handles a failed or duplicate delivery. Ask Strapi or the hosting team what retry behavior applies to your version before relying on it. Done means the runbook entry exists and the receiver owner has confirmed the failure handling in writing.

What the payload contains and why relations matter

For most entry events, Strapi does not send the record as it was saved. Except for entry.delete and entry.unpublish, Strapi reads the entry again before it sends the webhook, so the payload includes relations, media, components and dynamic zones along with the entry's own fields. That means the payload reflects the full content graph at send time, not just the field that changed. A receiver that expects a flat record will see nested objects it did not ask for, so check the exact shape of a sample payload from your Strapi version before you write parsing code, and treat anything beyond the documented fields as something to confirm in a test environment rather than assume.

The consequences fall on both sides of the integration. Payloads are heavier, especially for entries with deep relations or large dynamic zones, and every webhook fired during a bulk edit or import triggers a fresh read of each affected entry, which adds database load to the Strapi instance at the moment editors are working hardest. Measure this in staging with a realistic batch before a large migration or scheduled import, and agree with editors whether bulk operations should run in a quieter window. Ask your team to confirm how many webhooks a typical bulk action produces in your content model, since that count, not the size of one payload, usually drives the load.

Design receivers on the assumption that deliveries will be partial, repeated or out of order. A single editorial save can produce several events, a retried delivery can arrive twice, and a receiver that rebuilds a static site or reindexes a search document on every event may do the same work many times. Make handlers idempotent by keying work on the document and the target state rather than the event sequence, debounce rebuilds so that a burst of events triggers one job, and reconcile periodically against the source API so that a missed event does not leave stale content in production.

What webhooks leave out and how to cover the gap

Strapi webhooks push change notifications for a subset of content, and they are built for speed of notification rather than completeness of record. The cards below name the gaps that matter most for search, cache and build integrations, and the mitigation that keeps each downstream system correct.

Users content type is excluded

Strapi does not trigger webhooks for the Users content type, for privacy reasons. A change to an end-user record therefore never reaches your receiver. If a downstream system mirrors user profiles, plan a separate sync that reads through the API under a scoped token, and document which system owns user data. Check that no personal fields are copied into search or build payloads by accident.

Webhooks docs

Delete and unpublish payloads

For entry events other than entry.delete and entry.unpublish, Strapi reads the entry again before sending, so relations, media, components and dynamic zones are included. Delete and unpublish payloads do not get that re-read. Your receiver should treat these events as identifiers only, then remove the matching document from the index or cache by ID. Test both events on a staging instance before launch.

Webhooks are not an audit trail

A webhook tells a receiver that something changed. It does not record who made the change, what the previous value was, or whether an administrator reverted it later. For compliance evidence, use an audit source instead, such as Enterprise audit logs shipped to a SIEM, or database and backup records. Confirm retention requirements with your compliance team before relying on either.

Calls are not guaranteed delivery

Webhook calls are fire-and-forget from the perspective of most integrations. If your receiver is down, slow or returns an error during a publish, the change can be lost from the downstream system. Put a durable queue between Strapi and the receiver, make the handler idempotent so retries are safe, and confirm how Strapi retries failed deliveries in your version before you depend on it.

Missed changes need a full reindex

Because individual events can be lost, a search index or static build can drift from Strapi over time. Schedule a periodic full reindex or rebuild that reads current content through the API and compares it with the target. Choose the interval based on how stale the index may be for editors and visitors, and log the reconciliation results so drift is visible.

Webhook events

How a content change reaches a search index or static build

The flow starts when an editor saves or publishes an entry in the Strapi admin panel. Strapi emits the matching event, such as entry.publish, and for most entry events it reads the entry again so the payload includes relations, media, components and dynamic zones. Strapi then sends an HTTP request with the default headers to the receiver endpoint set in config/server. The trust boundary sits where that request leaves Strapi's network, so check the endpoint, headers and retry behavior before the receiver queues the reindex, cache purge or build.

Content change flow from the Strapi admin panel to a downstream receiver, with the network trust boundary marked.

Securing webhook endpoints and payloads

A Strapi webhook sends content data to a URL you choose, so the receiving side has to confirm who is calling, limit where calls can reach, and keep sensitive data out of what gets sent. The cards below are design considerations to check against your own configuration and receivers, not guaranteed features of Strapi.

Validating the caller

Strapi webhooks can send custom headers, which are set in config/server, so a receiver can check a shared secret before it acts on a request. Choose a long random value, store it in your secrets manager rather than in source control, and reject requests that lack it. Confirm how your Strapi version and hosting setup handle these headers, and test that a request without the secret is refused by your receiver.

Strapi webhooks docs

Restricting receiver network access

A webhook receiver should accept traffic only from the Strapi instance or the network path that sends events, not from the open internet. Use firewall rules, private networking or an ingress allow list where your infrastructure supports them, and keep the receiver off public DNS if no outside caller needs it. Check that a secret alone is not your only control, since a leaked value is then enough to reach the endpoint.

Keeping sensitive fields out of payloads

Webhook payloads include the entry data, relations, media and components, so fields such as internal notes, pricing drafts or personal data can leave Strapi with every event. Review each content type that triggers a webhook, and decide which fields a downstream system truly needs. Where a receiver only needs an identifier, have it fetch the rest through an authorized API call rather than receiving full content in the payload.

Protecting build hooks from public triggers

A static site build hook is a URL that starts a build when called, so anyone who learns it can trigger builds or consume build capacity. Treat the hook URL as a credential, store it as a secret in the Strapi webhook configuration, and rotate it if it appears in logs or shared tickets. Ask your hosting provider how hooks are generated, revoked and limited before you rely on them for production publishing.

Logging delivery failures

Webhooks that fail silently leave search indexes and caches out of date without anyone noticing. Record the event name, entry identifier, target URL, response status and retry decision for each delivery attempt, and alert when failures pile up. Confirm which delivery attempts Strapi records itself and which must come from your receiver or proxy logs, and keep those logs free of the secret header value.

Questions teams ask before building Strapi webhooks

How much effort does a Strapi webhook integration take?

The effort depends mostly on how many systems receive events, how your build pipeline responds to them, and how much testing the receivers need. A single receiver that only logs events is a small job. A setup where a search index, a cache purge and a static site build each react to different content types, with retries and error handling, is a larger one. Ask any partner for a written scope that lists each receiver, each event type it handles and the test cases for each. No duration is given here because the number of receivers and pipelines varies by project.

What drives the cost of building Strapi webhooks?

Cost is mostly labor, and it rises with the number of receivers, the complexity of the build pipeline behind them and the depth of testing. Costs that recur include monitoring receivers, updating payload handling when content types change and maintaining the static host configuration. Ask for a quote that separates one-time build work from ongoing support so you can compare options on both. DeployOpen does not publish prices, and a quote follows from the written scope.

Can our own engineers build Strapi webhooks without a partner?

Yes, if your team already runs Strapi and has someone comfortable with its server configuration and your receiving services. Webhooks are configured in the server settings, and the event list is documented by Strapi. The harder parts are usually verifying that each receiver handles retries and duplicate deliveries, and testing the full chain from an editor's save to the published site. If nobody on the team has done that before, a partner can take on the build while your engineers keep ownership of the result.

What do we need to provide before the work starts?

Plan to provide access to the Strapi configuration in your repository and environments, the endpoints or services that will receive events, and a staging environment where webhooks can fire without touching production content or live sites. You will also need the list of content types and events you care about, and the people who approve changes to build pipelines. Confirm with your own security team how receiver endpoints are authenticated before anything is shared.

Can a Strapi webhook trigger a build on our static host?

Usually yes, when the static host or CI system exposes a URL that accepts an HTTP request to start a build. Strapi sends the webhook to a URL you configure, so the static host needs to accept that request and start the build. Confirm with your host whether its build hook accepts the request format and whether it runs a build for every event or allows filtering. Many teams add a small receiver in between to filter events, which avoids a build for every minor edit.

Does excluding the Users content type affect user data sync?

Yes. Strapi does not trigger webhooks for the Users content type, for privacy reasons, so changes to user accounts will not reach your search index, cache or other receivers through webhooks. If a downstream system needs user data, it has to get that data another way, such as a scheduled export or a call to an API your team controls. Review this with your privacy team before designing the sync, since the answer affects what personal data leaves Strapi.

What should we check before relying on Strapi webhooks in production?

Check that each receiver verifies the request source, handles duplicate and out-of-order deliveries, and returns errors that make failures visible. Confirm that entries with relations, media and dynamic zones arrive in the form each receiver expects, because Strapi reads the entry again before sending for most events. Test delete and unpublish events separately, since their payloads do not include the same full entry. Finally, document which events are not sent, such as Users changes, so no one assumes coverage that does not exist.

How DeployOpen scopes and delivers webhook integrations

DeployOpen starts with a written scope before any configuration changes. The agreement names the events to be sent (for example, entry.create, entry.update, entry.publish or media.create), the content types in and out of scope, the receiving systems such as a search index, cache purge service or static site build trigger, and the payload fields each receiver needs. Deciding this early matters because every extra event and every relation the receiver reads adds load and deserves its own test. The scope also records who owns each receiver, who holds the endpoint URLs and shared secrets, and which environments get webhooks at all. Confirm with your team whether any editor-facing content type must stay out of the feed, since the webhook payload carries field values for every event you enable.

Implementation happens in your infrastructure. DeployOpen sets the webhook definitions in the Strapi admin panel or configuration, defines default headers and endpoints in config/server where your deployment requires them, and builds or configures each receiver so that it validates the request, acknowledges it quickly and queues the work. Delivery is then tested on the paths that fail in production: a receiver returning an error, a timeout, a duplicate delivery, a burst of edits from a bulk import and a media upload that arrives before its entry. Each test result is recorded, and the setup is documented for your platform and operations teams, covering the event list, payload assumptions, secrets rotation and the steps to replay or re-trigger a missed build. Ongoing support, upgrades when Strapi releases change webhook behavior, and periodic delivery checks are available as a retainer after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.