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
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
processing_id | string (UUID) | Sí | Tratamiento cuya historia se consulta. |
sandbox | boolean | No | true 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
items[] — evento| Campo | Tipo | Descripción |
|---|---|---|
event_id | string | Identificador público del evento. |
event_type | string | CONSENT_GRANTED, PROCESSING_DECLARED, CONSENT_REVOKED, PROCESSING_TERMINATED, EVIDENCE_RECEIVED, EVENT_VOIDED. |
occurred_at | string (ISO 8601) | Momento en que ocurrió el hecho. |
received_at | string (ISO 8601) | Momento en que Floid recibió el evento. |
voided | boolean | true si el evento fue anulado por otro. |
voided_by_event_id | string | Evento que lo anuló (null si no aplica). |
targets_event_id | string | Sólo en EVENT_VOIDED: evento objetivo anulado. |
origin | object | Origen de sólo lectura RIGHTS_REQUEST (null en eventos operacionales). |
activity_version_number | number | Versión de la actividad vigente al ocurrir el evento. |
Errores
| HTTP | error_code | Cuándo |
|---|---|---|
| 400 | DATA_PROCESSING_ID_REQUIRED | Falta processing_id. |
| 404 | PROCESSING_NOT_FOUND | El tratamiento no existe o no pertenece a tu cliente. |
| 500 | INTERNAL_ERROR | Error inesperado del servidor. |
Updated about 10 hours ago
