# appointment.outcome_recorded

> El evento appointment.outcome_recorded (Resultado de la visita registrado) de ByDomu: cuándo se emite, cómo suscribirse, sus campos y el payload que llega por webhook.


Resultado de la visita registrado

Objeto · appointment Incluye · contact Al instante

## Cuándo se emite

El asesor cerró la visita en el celular con su resultado (HOT, WARM, COLD o NO_SHOW), la objeción y la duración.

Al instante, cuando pasa en ByDomu: desde la app, la API, Noa, una automatización o una integración. `actor.kind` dice quién fue: USER, NOA, SYSTEM, API, AUTOMATION o INTEGRATION.

## Suscríbete con

- `appointment.outcome_recorded` Solo este evento
- `appointment.*` Todos los de Cita
- `*` Todo el catálogo

## Campos que trae

rutas para filtrar y plantillas

`appointment.id` Identificador de la cita

`appointment.title` Título de la cita

`appointment.type` Tipo de cita

`appointment.status` Estado de la cita

`appointment.startTime` Inicio

`appointment.endTime` Fin

`appointment.location` Lugar

`appointment.source` Origen

`appointment.contactId` Contacto

`appointment.dealId` Oportunidad

`appointment.propertyId` Inmueble

`appointment.assigneeId` Responsable

`appointment.attended` Asistió

`appointment.cancelReason` Motivo de la cancelación

`contact.id` Identificador del contacto

`contact.code` Código del contacto

`contact.firstName` Nombre

`contact.lastName` Apellido

`contact.email` Correo

`contact.phone` Teléfono

`contact.source` Origen

`contact.status` Estado

`contact.type` Tipo de contacto

`contact.score` Puntaje

`contact.ownerId` Responsable

`contact.preferredCity` Ciudad de interés

`contact.preferredType` Tipo de inmueble que busca

`contact.budget` Presupuesto

`contact.tags` Etiquetas

Hasta 5 intentos (0 s, 5 s, 30 s, 2 min y 10 min) ante error de red, 429 o 5xx. Responde 2xx en menos de 10 s.

Payload:

```
{
  "event": "appointment.outcome_recorded",
  "id": "5f3a0c1e-7d2b-4f7e-9a51-0b6c1d2e3f40",
  "type": "appointment.outcome_recorded",
  "timestamp": "2026-09-22T14:30:00.000Z",
  "organizationId": "clx1org001",
  "actor": {
    "kind": "USER",
    "userId": "clx1usr001"
  },
  "data": {
    "appointment": {
      "id": "clx1apt001",
      "title": "Visita · Apartamento en Chapinero Alto",
      "type": "SHOWING",
      "status": "COMPLETED",
      "startTime": "2026-09-26T15:00:00.000Z",
      "endTime": "2026-09-26T16:00:00.000Z",
      "location": "Cra 7 #45-12, Bogotá",
      "source": "MANUAL",
      "contactId": "clx1con001",
      "dealId": "clx1deal001",
      "propertyId": "clx1prop001",
      "assigneeId": "clx1usr001",
      "attended": true,
      "cancelReason": null,
      "createdAt": "2026-09-22T14:30:00.000Z"
    },
    "contact": {
      "id": "clx1con001",
      "code": "C-0042",
      "firstName": "Laura",
      "lastName": "Restrepo",
      "fullName": "Laura Restrepo",
      "email": "laura.restrepo@example.com",
      "phone": "+573000000001",
      "source": "WEBSITE",
      "status": "QUALIFIED",
      "type": "CLIENT",
      "score": 72,
      "ownerId": "clx1usr001",
      "preferredCity": "Bogotá",
      "preferredType": "APARTMENT",
      "budget": 450000000,
      "currency": "COP",
      "tags": [
        "Compra",
        "Chapinero"
      ],
      "createdAt": "2026-09-20T15:04:00.000Z"
    },
    "property": {
      "id": "clx1prop001",
      "code": "P-0042",
      "title": "Apartamento en Chapinero Alto con balcón",
      "type": "APARTMENT",
      "transactionType": "SALE",
      "status": "ACTIVE",
      "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"
    },
    "outcome": {
      "visitId": "clx1vis001",
      "result": "WARM",
      "objection": "PRICE",
      "objectionNote": "Le parece alto frente a otro del mismo edificio.",
      "transcript": null,
      "durationMinutes": 35,
      "propertyId": "clx1prop001",
      "contactId": "clx1con001",
      "dealId": "clx1deal001"
    }
  }
}
```

Encabezados:

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

Verificar firma:

```
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);
}
```

**Pídelo con tus datos de prueba** GET /v1/webhooks/sample/appointment.outcome_recorded

[Probar](https://developers.bydomu.com/referencia/get-webhook-sample?probar=1&type=appointment.outcome_recorded)
