KrateCMS can send webhook events to n8n whenever you publish a new post or update a post that is already live. From there, n8n can trigger any downstream automation — sending Slack notifications, syncing content to a third-party platform, updating a spreadsheet, or anything else your workflow requires. You can also configure n8n to send data back into KrateCMS so you can see the results directly in your admin panel.Documentation Index
Fetch the complete documentation index at: https://kratecms.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Events KrateCMS sends
KrateCMS fires outbound events only for published content. Drafts are never broadcast.| Event | When it fires |
|---|---|
kratecms.post.published | A draft transitions to published status |
kratecms.post.updated | A published post’s title, slug, content, category, featured image, visibility, or publish date changes |
Saving a post as a draft — including re-saving an existing draft — does not trigger any webhook event. Only actions that affect a published post are broadcast.
Webhook payload
Every outbound event uses the same envelope shape:event— the event name, used to route logic in your n8n workflowoccurred_at— ISO 8601 timestamp of when the event was triggeredmeta— context about the action: which post, which user, which sourcepayload.post— the current state of the post at the time of the event
How delivery works
Outbound webhook calls are queued in the background, so publishing or editing a post in your admin panel is never slowed down waiting for n8n to respond. KrateCMS includes built-in retry logic to handle transient failures. Certain error responses — such as404 Not Found or 422 Unprocessable Entity — are treated as non-retryable and will not be retried automatically.
Sending data back to KrateCMS (optional)
n8n can call back into KrateCMS to record the result of an automation. This is useful for audit trails and debugging — the ingest appears in your admin panel so you can confirm events were processed end-to-end. Endpoint:POST /api/integrations/n8n/ingest
Required header:
Set up the n8n integration
Create a webhook trigger in n8n
In your n8n instance, create a new workflow and add a Webhook trigger node. Set the method to POST. Save the node to generate a webhook URL.
Copy the webhook URL
Copy the webhook URL that n8n displays (it will look like
https://your-n8n-instance.com/webhook/...). You will paste this into KrateCMS in the next step.Configure KrateCMS to send events
Contact your administrator or platform operator and provide them with the webhook URL and a shared secret of your choosing. They will configure KrateCMS to send events to that URL, authenticating each request with the secret via the
X-KrateCMS-Integration-Secret header.Add a callback node in n8n (optional)
To record automation results back in KrateCMS, add an HTTP Request node after your trigger and configure it as follows:
- Method: POST
- URL:
https://<your-kratecms-domain>/api/integrations/n8n/ingest - Headers:
X-KrateCMS-Integration-Secret: <your-secret>Content-Type: application/json
- Body (JSON, using n8n expressions):
Test by publishing a post
Publish a post (or update a post that is already published) in your KrateCMS admin panel. In n8n, open the Executions log for your workflow and confirm a new execution appears with the expected payload. If you configured the callback, check your admin panel to confirm the ingest was recorded.
Troubleshooting
No executions appear in n8n after publishing
No executions appear in n8n after publishing
Confirm with your administrator that the n8n webhook URL and shared secret are saved in your KrateCMS configuration. Also verify that a queue worker is running on your server — without one, queued webhook jobs will accumulate but never be sent.
The callback ingest is not appearing in my admin panel
The callback ingest is not appearing in my admin panel
Check that the
X-KrateCMS-Integration-Secret header in your HTTP Request node matches the secret configured in KrateCMS exactly — the value is case-sensitive. Also confirm you are posting to the correct domain and path: POST /api/integrations/n8n/ingest.n8n is receiving events for some post saves but not others
n8n is receiving events for some post saves but not others
Events only fire for published posts. Saving a draft, unpublishing, or making changes to a post while it is in draft status will not trigger a webhook. For
kratecms.post.updated, only meaningful field changes — title, slug, content, category, featured image, visibility, or publish date — cause an event to fire.