Skip to content

Webhooks

Webhooks let you trigger external actions when content changes — rebuild your frontend, clear a CDN cache, notify a Slack channel, or sync content to another system.

Navigate to System → Webhooks in the admin UI and click + New Webhook.

Configure:

  • URL — The endpoint to receive POST requests
  • Events — Which events trigger the webhook
  • Secret — Optional shared secret for verifying request signatures
EventFires when
page.createdA new page is created
page.updatedA page’s content or metadata changes
page.publishedA page is published
page.unpublishedA page is unpublished
page.deletedA page is deleted
menu.updatedA menu’s items change
media.uploadedA new media file is uploaded
media.deletedA media file is deleted

Webhook payloads are sent as JSON POST requests:

{
"event": "page.updated",
"timestamp": "2026-03-20T14:30:00.000Z",
"data": {
"id": 1,
"type": "blog_post",
"title": "My Post",
"slug": "my-post",
"status": "published"
}
}

Point a webhook at your CI/CD pipeline’s trigger URL. When content changes, your Astro site rebuilds automatically.

Send a purge request to Cloudflare, Fastly, or your CDN when pages are updated.

Use a Slack incoming webhook URL to notify your team when content is published.