Webhooks & Exports
Mincemeat provides webhooks to notify external services when content changes, and backup tools to export your project schemas and entries at any time.
Webhooks
Webhooks let you build event-driven workflows. When content is updated, Mincemeat dispatches an HTTP POST request containing the event data payload to your endpoint.
Supported events
You can configure webhooks to trigger on the following events:
entry.created/entry.updatedentry.published/entry.unpublishedentry.trashed(moved to Trash) /entry.restored(restored from Trash)entry.purged(permanently deleted)media.uploaded/media.deletedschema.published(schema structure modified)
Queue-backed delivery
To prevent loss of delivery notifications during destination server outages, Mincemeat runs webhooks through an asynchronous edge queue:
Retries: If your destination server returns a non-2xx response, Mincemeat retries delivery using an exponential back-off strategy for up to 24 hours.
HMAC Signatures: Every webhook payload is signed. Mincemeat adds an
x-mincemeat-signatureheader containing a SHA-256 HMAC hex hash calculated using the webhook's private secret and the raw request body:httpx-mincemeat-signature: sha256=a1b2c3d4...Your receiving server should compute the same signature using your secret to verify that the request originated from Mincemeat.
Static site rebuild configuration
If you want content changes to trigger a static site rebuild on Mincemeat automatically:
- Open the project workspace in the Headless CMS Hub and go to the Settings workspace tab.
- Select the Webhooks sub-tab.
- Under the Add Webhook Endpoint section, configure the webhook:
- Webhook Name: Provide a descriptive name (e.g.,
Static Site Rebuild). - Secret Signing Key: Optional key to sign the requests.
- Target URL: The build hook URL of your deployment service. To rebuild a Mincemeat static site directly, target
mincemeat://static-sites/{site_id}using the static site API. - Trigger Events: Comma-separated list of triggers (e.g.
entry.published).
- Webhook Name: Provide a descriptive name (e.g.,
- Select Create Webhook.
Data backups and exports
You can export your entire project database and configurations at any time.
Export format
An export produces a single compressed archive (.tar.gz) containing:
manifest.json: Schema version metadata, collection definitions, and field types.entries.ndjson: Every content entry (including drafts and trashed records) saved as a newline-delimited JSON list.media.ndjson: Metadata records for all files in your media library.
::: note Media Files Exports contain the metadata index for media files (allowing you to rebuild database relationships), but do not package the original binary assets. Original files remain hosted in secure cloud storage under their respective hashes. :::
Steps: Export project data
- Open the project workspace in the Headless CMS Hub and select the Settings workspace tab.
- Choose the Data Export sub-tab from the settings menu.
- Select Trigger Export.
- The control plane enqueues a background task to package your database tables.
- Once the export is generated and ready, click Get Link next to the export record in the export history table to download it.
The download link is signed and remains valid for 24 hours before expiring.
