# Webhook events

Source: https://help.ruuster.com/idx/reference-webhook-events

> The listing-change webhook events, their bodies, the delivery headers, the signature rule and the batch body.

These are the events a listing-change webhook delivers, generated from the API's own definitions.
[Listing-change webhooks](https://help.ruuster.com/idx/guide-webhooks) covers setup,
verifying the signature with `verifyWebhook`, retries and test events.

Ruuster sends these events to the webhook URLs you add in Settings when a listing your key can show is created, changes price or status, or is removed.

### Event kinds

| Kind | When it is sent |
|---|---|
| `listing.created` | A listing your key can show appeared (new to the market, or newly in your boards' scope). |
| `listing.price_changed` | The list price changed. `previous.price` holds the price before the change when the history has it. |
| `listing.status_changed` | The status changed, for example from active to pending. `previous.status` holds the earlier status when the history has it. |
| `listing.removed` | The listing can no longer be shown on your site. Answer its page with 410 Gone and drop it from your sitemap. |

### Headers

| Header | What it holds |
|---|---|
| `Ruuster-Event-Id` | The event id (the same as `id` in the body). A delivery can repeat: keep the ids you have handled and skip a repeat. |
| `Ruuster-Event-Kind` | The event kind, or `batch` for a body that holds several events. |
| `Ruuster-Delivery-Id` | This delivery attempt's id. Quote it when you contact support. |
| `Ruuster-Signature` | `t=<unix seconds>,v1=<hex>`. During a secret rotation there are two `v1` values; either may match. |

### Body

One event per delivery looks like this. A hidden-address listing has no street in its `slug`.

```json
{
  "id": "levt_aef04390d0666f2c405600aa",
  "kind": "listing.price_changed",
  "apiVersion": "v1",
  "occurredAt": "2026-11-03T14:20:00.000Z",
  "listing": {
    "id": "aaaaaaaa-0000-4000-8000-000000000001",
    "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000001",
    "mls": "FIXTURE",
    "mlsNumber": "FXSTD001",
    "status": "active",
    "price": 489000,
    "href": "https://idx.ruuster.com/v1/listings/aaaaaaaa-0000-4000-8000-000000000001"
  },
  "previous": {
    "price": 499000
  }
}
```

When several events are ready at once, one delivery carries them together:

```json
{
  "id": "bat_7d1e2f3a4b5c6d7e8f9a0b1c",
  "kind": "batch",
  "apiVersion": "v1",
  "count": 1,
  "events": [
    {
      "id": "levt_aef04390d0666f2c405600aa",
      "kind": "listing.price_changed",
      "apiVersion": "v1",
      "occurredAt": "2026-11-03T14:20:00.000Z",
      "listing": {
        "id": "aaaaaaaa-0000-4000-8000-000000000001",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000001",
        "mls": "FIXTURE",
        "mlsNumber": "FXSTD001",
        "status": "active",
        "price": 489000,
        "href": "https://idx.ruuster.com/v1/listings/aaaaaaaa-0000-4000-8000-000000000001"
      },
      "previous": {
        "price": 499000
      }
    }
  ]
}
```

### Signature

Each delivery is signed. Read `Ruuster-Signature`, take `t` and every `v1`. Compute an HMAC-SHA256 with your signing secret over the text `<t>.<raw body>` and compare it, in constant time, with each `v1`. Accept the delivery when one matches and `t` is less than 300 seconds old. The SDK's `verifyWebhook` does all of this and gives you the events whether the body holds one event or a batch.
