# Catálogo de eventos de dominio

GET `https://api.bydomu.com/v1/events`

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Todos los tipos de evento que emite Domu, con el objeto que los origina, los objetos que incluye el payload, las rutas de campo disponibles, una descripción (es/en/pt) y un payload de ejemplo (`example`, el `data` de una entrega, con datos inventados). Es la fuente del selector de disparadores en Zapier, n8n o Make.

Permission required

`events:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Response 200

`DomainEventDefinition[]` · 8 fields

**`data[]` type · object · scheduled · includes · fields · description · actor · example**

`type` string

`object` string Objeto que origina el evento

`scheduled` boolean Lo emite un proceso programado (p. ej. `lease.expiring`)

`includes` string[] Otros objetos que trae el payload

`fields` string[] Rutas de campo del payload

**`description` Cuándo sale y qué trae, en español, inglés y portugués**

`es` string

`en` string

`pt` string

`actor` string Quién lo origina normalmente (`actor.kind` de la entrega)

`example` any Payload de ejemplo: el `data` de una entrega de webhook, con datos inventados y la forma exacta que reparte el bus

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/events" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.events.listTypes();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/events",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Response · 200 · example**

```json
{
  "data": [
    {
      "type": "deal.won",
      "object": "deal",
      "scheduled": false,
      "includes": [
        "contact"
      ],
      "fields": [
        "deal.id"
      ],
      "description": {
        "es": "El negocio llegó a una etapa ganada. Sale junto con deal.stage_changed.",
        "en": "The deal reached a won stage. Fires together with deal.stage_changed.",
        "pt": "O negócio chegou a uma etapa ganha. Sai junto com deal.stage_changed."
      },
      "actor": "USER",
      "example": {
        "deal": {
          "id": "clx1deal001",
          "code": "N-0042",
          "title": "Compra apartamento Chapinero · Laura Restrepo",
          "value": 450000000,
          "currency": "COP",
          "probability": 100,
          "status": "WON",
          "intent": "PURCHASE",
          "leadSource": "PORTAL",
          "lostReason": null,
          "aiCreated": false,
          "agentId": "clx1usr001",
          "contactId": "clx1con001",
          "pipelineId": "clx1pip001",
          "stageId": "clx1stg005",
          "stageName": "Ganado",
          "stageEnteredAt": "2026-09-22T14:30:00.000Z",
          "expectedCloseDate": "2026-10-31T00:00:00.000Z",
          "closedAt": "2026-09-22T14:30:00.000Z",
          "createdAt": "2026-09-20T15:05:00.000Z",
          "saasPlanId": null,
          "saasPlanName": null,
          "saasBillingPeriod": null,
          "saasMrrAmount": null,
          "trialStartedAt": null,
          "trialEndsAt": null
        },
        "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",
  …
```
