# property.unpublished

> O evento property.unpublished (Imóvel despublicado) do ByDomu: quando é emitido, como assinar, seus campos e o payload que chega por webhook.


Imóvel despublicado

Objeto · property Na hora

## Quando é emitido

O imóvel passou de ativo a inativo.

Na hora, quando acontece no ByDomu: pelo app, pela API, pela Noa, por uma automação ou uma integração. `actor.kind` diz quem foi: USER, NOA, SYSTEM, API, AUTOMATION ou INTEGRATION.

## Assine com

- `property.unpublished` Só este evento
- `property.*` Todos os de Imóvel
- `*` O catálogo inteiro

## Campos que traz

caminhos para filtros e modelos

`property.id` Identificador do imóvel

`property.code` Código do imóvel

`property.title` Título do imóvel

`property.type` Tipo de imóvel

`property.transactionType` Operação

`property.status` Status do imóvel

`property.price` Preço de venda

`property.rentPrice` Valor do aluguel

`property.currency` Moeda

`property.city` Cidade

`property.neighborhood` Bairro

`property.bedrooms` Quartos

`property.bathrooms` Banheiros

`property.area` Área

`property.agentId` Corretor

`property.previousPrice` Preço anterior

`property.previousStatus` Status anterior

Até 5 tentativas (0 s, 5 s, 30 s, 2 min e 10 min) em erro de rede, 429 ou 5xx. Responda 2xx em menos de 10 s.

Payload:

```
{
  "event": "property.unpublished",
  "id": "5f3a0c1e-7d2b-4f7e-9a51-0b6c1d2e3f40",
  "type": "property.unpublished",
  "timestamp": "2026-09-22T14:30:00.000Z",
  "organizationId": "clx1org001",
  "actor": {
    "kind": "USER",
    "userId": "clx1usr001"
  },
  "data": {
    "property": {
      "id": "clx1prop001",
      "code": "P-0042",
      "title": "Apartamento en Chapinero Alto con balcón",
      "type": "APARTMENT",
      "transactionType": "SALE",
      "status": "INACTIVE",
      "price": 450000000,
      "rentPrice": null,
      "currency": "COP",
      "city": "Bogotá",
      "neighborhood": "Chapinero Alto",
      "address": "Cra 7 #45-12",
      "bedrooms": 3,
      "bathrooms": 2,
      "area": 85,
      "agentId": "clx1usr001",
      "createdAt": "2026-08-14T16:20:00.000Z"
    }
  }
}
```

Cabeçalhos:

```
X-Domu-Event: property.unpublished
X-Domu-Signature: t=1790610130,v1=9c1e…
User-Agent: Domu-Webhooks/2
```

Verificar assinatura:

```
import { createHmac, timingSafeEqual } from "node:crypto";

// header = X-Domu-Signature: t=<timestamp>,v1=<hmac>
function verifyWebhook(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const timestamp = Number(parts.t);
  if (!timestamp || !parts.v1) return false;
  if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSec) return false;
  const expected = createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1);
  return a.length === b.length && timingSafeEqual(a, b);
}
```

**Peça com seus dados de teste** GET /v1/webhooks/sample/property.unpublished

[Testar](https://developers.bydomu.com/pt/referencia/get-webhook-sample?probar=1&type=property.unpublished)
