webhooks
Create Subscription
Create a new webhook subscription.
Webhook subscriptions allow you to receive real-time notifications when events occur in Airweave. When you create a subscription, you specify:
- URL: The HTTPS endpoint where events will be delivered
- Event Types: Which events you want to receive (e.g., sync.completed, sync.failed)
- Secret (optional): A custom signing secret for verifying webhook signatures
After creation, Airweave will send HTTP POST requests to your URL whenever matching events occur. Each request includes a signature header for verification.
post/webhooks/subscriptions
Request body
Example request
{
"event_types": [
"sync.completed",
"sync.failed"
],
"url": "https://api.mycompany.com/webhooks/airweave"
}Response
Created subscription
Example response
{
"created_at": "2024-03-01T08:00:00Z",
"description": "Production notifications for data team",
"disabled": false,
"filter_types": [
"sync.completed",
"sync.failed"
],
"health_status": "healthy",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"updated_at": "2024-03-15T14:30:00Z",
"url": "https://api.mycompany.com/webhooks/airweave"
}