curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"runId": "<string>",
"workOrderId": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"initialConfig": {},
"finalConfig": {},
"snapshotCount": 123,
"changeCount": 123,
"configHashChanged": true
}
}Get audit record summary for a run
curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"runId": "<string>",
"workOrderId": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"initialConfig": {},
"finalConfig": {},
"snapshotCount": 123,
"changeCount": 123,
"configHashChanged": true
}
}curl https://agentgate.mynewapi.com/api/v1/audit/runs/run_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
Show properties
{
"success": true,
"data": {
"runId": "run_abc123",
"workOrderId": "wo_xyz789",
"startedAt": "2024-01-15T10:30:00.000Z",
"completedAt": "2024-01-15T11:15:00.000Z",
"initialConfig": {
"id": "snap_001",
"workOrderId": "wo_xyz789",
"runId": "run_abc123",
"iteration": 0,
"snapshotAt": "2024-01-15T10:30:00.000Z",
"configHash": "sha256:abc123...",
"config": {
"loopStrategy": {
"mode": "hybrid",
"maxIterations": 10
},
"verification": {
"skipLevels": []
},
"gitOps": {
"mode": "github-pr"
},
"executionLimits": {
"maxWallClockSeconds": 3600
}
}
},
"finalConfig": {
"id": "snap_005",
"iteration": 4,
"snapshotAt": "2024-01-15T11:15:00.000Z",
"configHash": "sha256:def456...",
"config": {
"loopStrategy": {
"mode": "hybrid",
"maxIterations": 15
},
"verification": {
"skipLevels": ["L2"]
},
"gitOps": {
"mode": "github-pr"
},
"executionLimits": {
"maxWallClockSeconds": 3600
}
}
},
"snapshotCount": 5,
"changeCount": 2,
"configHashChanged": true
},
"requestId": "req_abc123"
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Audit record not found for run: run_abc123"
}
}