Webhooks Overview
Beta Feature
The Webhooks API is currently in beta. The API is stable but may receive enhancements based on feedback.
What are Webhooks?
Webhooks are real-time notifications that Airweave sends when things happen in your organization: syncs completing, source connections being created, collections being updated. Instead of constantly polling the API, you register a webhook endpoint and Airweave pushes updates to you the moment they occur.
This is the foundation for building reactive integrations. Trigger downstream workflows, update dashboards, send alerts, or sync state with external systems automatically.
Why Use Webhooks?
Webhooks are the preferred approach for production integrations where you need to react to events in real-time.
Available Event Types
Airweave publishes events across three lifecycle domains:
Sync Events
Source Connection Events
Collection Events
Most integrations only need sync.completed and sync.failed. Subscribe to source connection and collection events if you need to track infrastructure changes, for example, to audit when connections are added or removed, or to react when collections are created.
How It Works
- Something happens. A sync job completes, a source connection is created, or a collection is updated.
- Airweave creates an event. The event is recorded with full payload data.
- Svix delivers it. Our webhook infrastructure (powered by Svix) sends an HTTP POST to your registered endpoints.
- You process it. Your server receives the payload and takes action.
Svix handles retries, delivery guarantees, and signs every outbound delivery. You verify signatures on your end using the signing secret (see the Setup Guide for examples).
Use Cases
Start a data pipeline, refresh a cache, or kick off downstream processing when a sync completes.
Notify your team via Slack, email, or PagerDuty when a sync fails or a connection is removed.
Know the moment a source connection is added, authenticated, or deleted, or when collections change.
Record every lifecycle event to your own logging system for compliance or debugging.
Quick Example
Here’s what a webhook delivery looks like when a sync completes:
HTTP Request to your endpoint:
Your server responds with 200 OK to acknowledge receipt.