HITL Audit Log
Overview
Authentication
X-API-Key: your_api_key_here1
List Audit Records
Parameter
Type
Required
Default
Constraints / Notes
GET /agents/hitl/audit?page=1&limit=20&decision_type=approved&start_date=2025-10-01T00:00:00Z&sort_order=desc
X-API-Key: your_api_key_here{
"success": true,
"message": "Successfully retrieved 20 of 342 HITL audit records",
"data": [
{
"request_id": "hitl-req-123e4567-e89b-12d3-a456-426614174000",
"decision": "approved",
"timestamp": "2025-10-10T14:30:45.123Z",
"agent": {
"id": "weekly-report-agent",
"name": "Weekly Report Generator"
},
"tool": {
"name": "github_create_issue",
"arguments": {
"owner": "myorg",
"repo": "myrepo",
"title": "Weekly Report - Week 41"
}
},
"metadata": {}
}
],
"total": 342,
"page": 1,
"limit": 20,
"has_next": true,
"has_prev": false
}Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
{
"error": "invalid_parameter",
"message": "Invalid sort_order. Must be either 'asc' or 'desc'",
"details": {
"parameter": "sort_order",
"value": "invalid_value"
}
}{
"error": "unauthorized",
"message": "Authentication required to access audit logs"
}{
"error": "forbidden",
"message": "User does not have permission to access audit logs"
}{
"error": "validation_error",
"message": "Invalid date range: start_date must be before end_date",
"details": {
"start_date": "2025-10-10T00:00:00Z",
"end_date": "2025-10-01T00:00:00Z"
}
}2
Get Audit Record Detail
Parameter
Type
Required
Description
GET /agents/hitl/audit/hitl-req-123e4567-e89b-12d3-a456-426614174000
X-API-Key: your_api_key_here{
"success": true,
"message": "HITL audit record retrieved successfully",
"data": {
"request_id": "hitl-req-123e4567-e89b-12d3-a456-426614174000",
"decision": "approved",
"timestamp": "2025-10-10T14:30:45.123Z",
"agent": {
"id": "weekly-report-agent",
"name": "Weekly Report Generator"
},
"tool": {
"name": "github_create_issue",
"arguments": {
"owner": "myorg",
"repo": "myrepo",
"title": "Weekly Report - Week 41",
"body": "## Summary\n\nWeekly activity report...",
"labels": ["automated", "report"]
}
},
"metadata": {
}
}
}Field
Type
Description
Field
Type
Description
{
"error": "not_found",
"message": "Audit log record not found",
"details": {
"request_id": "hitl-req-invalid"
}
}{
"error": "unauthorized",
"message": "Authentication required to access audit logs"
}{
"error": "forbidden",
"message": "User does not have permission to access this audit record"
}Validation Rules
Usage Examples
Important Notes
Related Endpoints
Related Documentation
Last updated