Overview
Webhooks allow your application to receive real-time notifications when events occur in Synchr.ai. Instead of polling the API, webhooks push data to your endpoint whenever something happens.
Setting Up Webhooks
- Navigate to Settings > API > Webhooks
- Click "Add Endpoint"
- Enter your webhook URL (must be HTTPS)
- Select the events you want to subscribe to
- Click "Save" to activate the webhook
Available Events
sync.started— A sync operation has begunsync.completed— A sync operation finished successfullysync.failed— A sync operation encountered an errorsync.conflict— A data conflict was detectedconnection.created— A new connection was establishedconnection.disconnected— A connection was lost or removedrecord.created— A new record was syncedrecord.updated— An existing record was updated
Webhook Payload
Each webhook delivery includes a JSON payload with the event type, timestamp, and relevant data. All payloads include a signature header for verification:
X-Synchr-Signature: sha256=abc123...
Retry Policy
If your endpoint returns a non-2xx status code, Synchr.ai retries the delivery up to 5 times with exponential backoff. After 5 failed attempts, the webhook is marked as failing and you receive an email notification.
Testing Webhooks
Use the "Send Test Event" button in the webhook settings to deliver a sample payload to your endpoint for testing.