Obtenga registro de historial de agentes
Consigue registro de historia del agente. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
/AgentHistory/{id}Consigue registro de historia del agente. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
Descripción de OpenAPI: Este endpoint devuelve los detalles de un registro de historial específico.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
| Nombre | Zona | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|---|
id | path | integer · int32 | Sí | — | — |
Órgano solicitante
Esta operación no acepta un organismo de solicitud.
Ejemplo de solicitud
curl --request GET \
--url 'https://api.zild.ai/AgentHistory/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY'
Respuestas
| Estado | Descripción | Cuerpo de respuesta |
|---|---|---|
200 | Registro obtenido correctamente | application/json · AgentHistoryDto |
404 | Registro no encontrado | No se define ningún organismo de respuesta. |
Respuesta de ejemplo (200):
{
"id": 0,
"agentId": 0,
"agentName": "string",
"userId": 0,
"userName": "string",
"userEmail": "string",
"actionType": 0,
"actionTypeDescription": "string",
"description": "string",
"previousState": "string",
"newState": "string",
"changedFields": "string",
"createdAt": "2026-09-22T18:00:00Z",
"version": 0
}
Modelos de datos
AgentHistoryActionType
0 = Created; 1 = Updated; 2 = Deleted; 3 = FileAdded; 4 = FileRemoved; 5 = DynamicVariableAdded; 6 = DynamicVariableUpdated; 7 = DynamicVariableRemoved; 8 = DataCollectionAdded; 9 = DataCollectionUpdated; 10 = DataCollectionRemoved; 11 = ToolAdded; 12 = ToolUpdated; 13 = ToolRemoved; 14 = TaskAdded; 15 = TaskUpdated; 16 = TaskRemoved; 17 = PermissionChanged
integer
AgentHistoryDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
agentId | integer · int32 | No | — | — |
agentName | string | No | — | nullable |
userId | integer · int32 | No | — | — |
userName | string | No | — | nullable |
userEmail | string | No | — | nullable |
actionType | AgentHistoryActionType | No | — | — |
actionTypeDescription | string | No | — | nullable |
description | string | No | — | nullable |
previousState | string | No | — | nullable |
newState | string | No | — | nullable |
changedFields | string | No | — | nullable |
createdAt | string · date-time | No | — | — |
version | integer · int32 | No | — | — |