Historial de agentes de filtro
Filtrar historia del agente. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
/AgentHistory/filterFiltrar 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 permite filtrar el historial por agente (obligatorio), usuario, tipo de acción y periodo. Admite paginación.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
Esta operación no tiene parámetros de ruta, consulta o encabezado.
Órgano solicitante
Tipo de contenido: application/json · Schema: AgentHistoryFilterDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
agentId | integer · int32 | Sí | — | — |
userId | integer · int32 | No | — | nullable |
actionType | AgentHistoryActionType | No | — | — |
createdAtStart | string · date-time | No | — | nullable |
createdAtEnd | string · date-time | No | — | nullable |
page | integer · int32 | No | — | — |
pageSize | integer · int32 | No | — | — |
Ejemplo de solicitud
curl --request POST \
--url 'https://api.zild.ai/AgentHistory/filter' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"agentId": 0,
"userId": 0,
"actionType": 0,
"createdAtStart": "2026-09-22T18:00:00Z",
"createdAtEnd": "2026-09-22T18:00:00Z",
"page": 0,
"pageSize": 0
}'
Respuestas
| Estado | Descripción | Cuerpo de respuesta |
|---|---|---|
200 | Suceso ao hés o trabajo | application/json · AgentHistoryPagedResultDto |
400 | AgenteId é obrigatório (AgentId) | No se define ningún organismo de respuesta. |
Respuesta de ejemplo (200):
{
"items": [
{
"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
}
],
"totalCount": 0,
"page": 0,
"pageSize": 0,
"totalPages": 0,
"hasNextPage": true,
"hasPreviousPage": true
}
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 | — | — |
AgentHistoryFilterDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
agentId | integer · int32 | Sí | — | — |
userId | integer · int32 | No | — | nullable |
actionType | AgentHistoryActionType | No | — | — |
createdAtStart | string · date-time | No | — | nullable |
createdAtEnd | string · date-time | No | — | nullable |
page | integer · int32 | No | — | — |
pageSize | integer · int32 | No | — | — |
AgentHistoryPagedResultDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
items | array<AgentHistoryDto> | No | — | nullable |
totalCount | integer · int32 | No | — | — |
page | integer · int32 | No | — | — |
pageSize | integer · int32 | No | — | — |
totalPages | integer · int32 | No | — | — |
hasNextPage | boolean | No | — | — |
hasPreviousPage | boolean | No | — | — |