ByDomuDevelopers

Últimos eventos de la organización

GEThttps://api.bydomu.com/v1/events/recent

Hasta 20 eventos reales recientes, del más nuevo al más viejo, opcionalmente de un solo tipo. Pensado para el paso de «datos de ejemplo» al configurar un disparador.

Permiso que pide

events:read

Encabezado obligatorio

X-API-Key · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

Parámetros de consulta

1 · todos opcionales
typestring · opcional
Tipo exacto del catálogo, p. ej. deal.won≤ 100 chars

Respuesta 200

RecentDomainEvent[] · 10 campos
data[]id · type · aggregateType · aggregateId · payload · actorKind · actorUserId · occurredAt · dispatchStatus · lastError
idstring
typestring
aggregateTypestring
aggregateIdstring
payloadanyDatos propios del evento
actorKindstringUSER, NOA, SYSTEM, API, AUTOMATION, INTEGRATION
actorUserIdstring
occurredAtstring
dispatchStatusstringPENDING, PROCESSING, DISPATCHED, FAILED
lastErrorstring

Errores posibles

con la forma { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
PeticiónGET/v1/events/recent
SDK oficial · @bydomu/sdk · aún no está en npm
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.events.listRecent();
200 OK · ejemplo
{
  "data": [
    {
      "id": "5f3a0c1e-7d2b-4f7e-9a51-0b6c1d2e3f40",
      "type": "deal.won",
      "aggregateType": "deal",
      "aggregateId": "clx1deal001",
      "payload": {
        "stageName": "Ganado"
      },
      "actorKind": "USER",
      "actorUserId": "clx1usr001",
      "occurredAt": "2026-09-22T14:30:00.000Z",
      "dispatchStatus": "PENDING",
      "lastError": "timeout"
    }
  ]
}