Overview
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
List Subscriptions
/v1/webhooks/subscriptions
List all webhook subscriptions for your organization
Response
Returns an array of subscription objects.Unique UUID identifier for this subscription
The URL where webhook events are delivered
Event types this subscription receives
Whether this subscription is currently disabled
Health status:
healthy, degraded, failing, or unknownISO 8601 timestamp when created
ISO 8601 timestamp when last updated
Example Request
cURL
Get Subscription
/v1/webhooks/subscriptions/{subscription_id}
Retrieve a specific webhook subscription with its recent delivery attempts
Path Parameters
UUID of the subscription to retrieve
Query Parameters
Include the signing secret for webhook signature verification
Response
Returns a subscription object with delivery attempts.Recent delivery attempts for this subscription
Signing secret (only included when
include_secret=true)Example Request
cURL
Create Subscription
/v1/webhooks/subscriptions
Create a new webhook subscription
Request Body
The HTTPS URL where webhook events will be deliveredMust be a publicly accessible endpoint that returns a 2xx status code.
List of event types to subscribe toAvailable types:
sync.pendingsync.runningsync.completedsync.failedsync.cancelledsource_connection.createdsource_connection.auth_completedsource_connection.deletedcollection.createdcollection.updatedcollection.deleted
Optional custom signing secret for webhook signature verification (min 24 characters)If not provided, a secure secret will be auto-generated.
Example Request
Update Subscription
/v1/webhooks/subscriptions/{subscription_id}
Update an existing webhook subscription
Request Body
All fields are optional. Only include fields you want to change.New URL for webhook delivery
New list of event types (replaces existing list)
Set to
true to pause delivery, false to resumeWhen re-enabling (
disabled: false), optionally recover failed messages from this timestamp (ISO 8601)Example Request
Disable Subscription
Delete Subscription
/v1/webhooks/subscriptions/{subscription_id}
Permanently delete a webhook subscription
Path Parameters
UUID of the subscription to delete
Example Request
cURL
Recover Failed Messages
/v1/webhooks/subscriptions/{subscription_id}/recover
Retry failed message deliveries for a webhook subscription
Request Body
Start of the recovery time window (ISO 8601)All failed messages from this time onward will be retried.
End of the recovery time window (ISO 8601)If not specified, recovers all failed messages up to now.
Response
Unique identifier for this recovery task
Recovery task status:
running or completedExample Request
cURL