Types & Formats
This page documents the structure of webhook payloads, delivery headers, and the data models used throughout the Webhooks API.
Event Types
sync.pending
Fired when a sync job is created and queued for processing.
sync.running
Fired when the sync job starts processing.
sync.completed
Fired when the sync job finishes successfully.
sync.failed
Fired when the sync job encounters an error. Includes an error field with details.
sync.cancelled
Fired when the sync job is manually cancelled.
Payload Schema
Every event payload follows this structure:
Delivery Format
When Airweave delivers an event to your webhook endpoint, the HTTP request includes:
Headers
Body
The request body is the raw event payload (JSON).
Expected Response
Your endpoint should return a 2xx status code to acknowledge receipt:
Webhook Subscription
When you create or retrieve a subscription, you’ll see this structure:
Webhook Message
When retrieving messages via the API, each message has this structure:
Delivery Attempt
When you retrieve delivery attempts (via include_attempts=true or the subscription endpoint), each attempt has this structure:
Retry Schedule
Failed deliveries are retried with exponential backoff:
After 5 failed attempts, the message is marked as failed. You can manually recover failed messages using the recover endpoint.