Skip to main content
Authenticated API

ACP (AI Cost & Performance) endpoints require a valid JWT Bearer token. Accessible via the API gateway.

Audit Logging & Security Events

Complete audit trail of all ACP operations plus security event tracking for monitoring and incident response.

Audit Logs

List Audit Logs

GET /acp/audit-logs?agent_id=agent_abc123&action=tool_execution&start_date=2026-01-01

Query Parameters:

ParameterTypeDescription
agent_idstringFilter by agent
actionstringFilter by action type
user_idstringFilter by user (for manual actions)
start_datestringStart of date range (ISO 8601)
end_datestringEnd of date range (ISO 8601)
limitintegerResults per page (default: 100)
offsetintegerPagination offset

Action Types:

ActionDescription
agent_registeredNew agent created
agent_status_changedAgent status updated
permission_grantedPermission added
permission_revokedPermission removed
tool_enabledTool enabled for agent
tool_disabledTool disabled for agent
tool_executionAgent executed a tool
approval_requestedHITL approval created
approval_grantedApproval approved
approval_deniedApproval denied

Response (200 OK):

{
"audit_logs": [
{
"log_id": "log_abc123",
"timestamp": "2026-01-19T14:30:00Z",
"agent_id": "agent_abc123",
"agent_name": "restaurant-assistant",
"action": "tool_execution",
"tool": "create_order",
"user_id": null,
"tenant_id": "tenant_xyz",
"details": {
"input": {"items": ["item_1", "item_2"]},
"output": {"order_id": "order_123"},
"duration_ms": 245
},
"ip_address": "10.0.1.50",
"success": true
}
],
"total": 1542,
"limit": 100,
"offset": 0
}

Security Events

Track security-relevant events for monitoring and response.

List Security Events

GET /acp/security-events?severity=high&acknowledged=false

Query Parameters:

ParameterTypeDescription
severitystringFilter: info, warning, high, critical
acknowledgedbooleanFilter by acknowledgment status
agent_idstringFilter by agent
event_typestringFilter by event type
start_datestringStart of date range
end_datestringEnd of date range

Event Types:

Event TypeSeverityDescription
permission_escalation_attempthighAgent tried to exceed permissions
rate_limit_exceededwarningAgent hit rate limits
tool_access_deniedwarningAgent tried to use disabled tool
unusual_pattern_detectedhighAnomalous behavior detected
approval_timeoutinfoApproval request expired
repeated_failureswarningMultiple consecutive failures
data_exfiltration_attemptcriticalSuspected data extraction

Response (200 OK):

{
"security_events": [
{
"event_id": "evt_sec123",
"timestamp": "2026-01-19T14:30:00Z",
"event_type": "permission_escalation_attempt",
"severity": "high",
"agent_id": "agent_abc123",
"agent_name": "restaurant-assistant",
"description": "Agent attempted to access admin capability without permission",
"details": {
"attempted_capability": "system_admin",
"current_permissions": ["order_management", "inventory_queries"]
},
"acknowledged": false,
"acknowledged_by": null,
"acknowledged_at": null
}
],
"total": 5,
"unacknowledged_count": 3
}

Acknowledge Security Event

POST /acp/security-events/{event_id}/acknowledge
Content-Type: application/json

Request Body:

{
"notes": "Reviewed. Agent configuration updated to prevent recurrence.",
"resolution": "config_updated"
}

Response (200 OK):

{
"event_id": "evt_sec123",
"acknowledged": true,
"acknowledged_by": "user_admin456",
"acknowledged_at": "2026-01-19T15:00:00Z",
"notes": "Reviewed. Agent configuration updated to prevent recurrence.",
"resolution": "config_updated"
}