Listar Eventos del Tratamiento

Listar Eventos del Tratamiento

POST /cl/consent_manager/list_processing_events

Devuelve la historia inmutable (append-only) de un tratamiento, ordenada cronológicamente. Es la misma vista de eventos que expone el bloque history de get_processing. Ningún evento se oculta: las anulaciones se conservan y se marcan.

  • URL de producción: https://api.floid.app/cl/consent_manager/list_processing_events
  • URL de sandbox: https://sandbox.floid.app/cl/consent_manager/list_processing_events

Headers requeridos

Authorization: Bearer {{TOKEN}}
Content-Type: application/json

Parámetros del body

CampoTipoRequeridoDescripción
processing_idstring (UUID)Tratamiento cuya historia se consulta.
sandboxbooleanNotrue consulta el espacio sandbox. Por defecto false.

Ejemplo

curl --location 'https://api.floid.app/cl/consent_manager/list_processing_events' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{TOKEN}}' \
  --data '{ "processing_id": "550e8400-e29b-41d4-a716-446655440000" }'

Respuesta exitosa (200)

{
  "code": 200,
  "message": "OK",
  "caseid": "b3f1c2a4-9e77-4c31-8a10-2f6d5e7a1b90",
  "data": {
    "items": [
      {
        "event_id": "9d2b7f10-3c44-4a51-8b22-77aa11bb22cc",
        "event_type": "CONSENT_GRANTED",
        "occurred_at": "2026-09-10T13:00:00.000Z",
        "received_at": "2026-09-10T13:00:05.000Z",
        "voided": false,
        "voided_by_event_id": null,
        "targets_event_id": null,
        "origin": null,
        "activity_version_number": 3
      },
      {
        "event_id": "e11a22bb-33cc-44dd-55ee-66ff77aa88bb",
        "event_type": "CONSENT_REVOKED",
        "occurred_at": "2026-09-20T10:00:00.000Z",
        "received_at": "2026-09-20T10:00:03.000Z",
        "voided": false,
        "voided_by_event_id": null,
        "targets_event_id": null,
        "origin": null,
        "activity_version_number": 3
      }
    ]
  }
}

items[] — evento

CampoTipoDescripción
event_idstringIdentificador público del evento.
event_typestringCONSENT_GRANTED, PROCESSING_DECLARED, CONSENT_REVOKED, PROCESSING_TERMINATED, EVIDENCE_RECEIVED, EVENT_VOIDED.
occurred_atstring (ISO 8601)Momento en que ocurrió el hecho.
received_atstring (ISO 8601)Momento en que Floid recibió el evento.
voidedbooleantrue si el evento fue anulado por otro.
voided_by_event_idstringEvento que lo anuló (null si no aplica).
targets_event_idstringSólo en EVENT_VOIDED: evento objetivo anulado.
originobjectOrigen de sólo lectura RIGHTS_REQUEST (null en eventos operacionales).
activity_version_numbernumberVersión de la actividad vigente al ocurrir el evento.

Errores

HTTPerror_codeCuándo
400DATA_PROCESSING_ID_REQUIREDFalta processing_id.
404PROCESSING_NOT_FOUNDEl tratamiento no existe o no pertenece a tu cliente.
500INTERNAL_ERRORError inesperado del servidor.