---
title: "sync.error — Webhooks"
canonical: "https://repull.dev/docs/webhooks/sync-error"
description: "The sync.error webhook: fired when a PMS or channel data sync fails, with the error. Payload, signature check and example handler."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# `sync.error`

Fired when a PMS/OTA data sync fails. Check the error field for details.

## Payload

Every delivery uses the same outer envelope (`event`, `eventId`, `apiVersion`, `timestamp`, `account`, `data`, plus a numeric `workspaceId` on events from a [customer workspace](https://repull.dev/docs/webhooks-introduction.md#routing-events-to-a-workspace)). Dedupe on `eventId` — it stays stable across retries and replays, while the `X-Repull-Delivery-Id` header changes on every attempt.

```
{
  "event": "sync.error",
  "timestamp": "2026-04-04T03:05:00Z",
  "data": {
    "provider": "guesty",
    "syncType": "incremental",
    "error": "Authentication failed — token expired",
    "retriesRemaining": 2
  }
}
```

## Verifying signatures

Every delivery includes a timestamped `X-Repull-Signature` header of the form `t=<unix_ts>,v1=<hex>`, where `v1` is ``HMAC-SHA256(signing_secret, `${t}.${raw_body}`)``. Verify it before processing — see [Verify Signatures](https://repull.dev/docs/verify-webhook-signatures.md) for full Node.js and Python examples.

> **Warning: Use the raw body**
>
> Sign the raw request body exactly as received, not a re-stringified JSON object. Re-serialisation can reorder keys or change whitespace and break the signature.

## Example handler

```
if (event === 'sync.error') {
  console.error('Sync failed:', data.provider, data.error)
  if (data.retriesRemaining === 0) {
    // Alert: connection may need re-authentication
  }
}
```

**Tip:** Acknowledge with a 2xx status within 10 seconds. Failed deliveries are retried 7 times over 24 hours, with backoff.[Webhook reliability →](https://repull.dev/docs/webhooks-introduction.md)
