Skip to main content
GET
https://agentgate.mynewapi.com
/
api
/
v1
/
audit
/
runs
/
{runId}
Get Audit Summary
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 Summary

Returns a summary of the configuration audit trail for a specific run, including initial and final configurations.

Request

runId
string
required
The run ID to get audit summary for
curl https://agentgate.mynewapi.com/api/v1/audit/runs/run_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

success
boolean
required
Indicates if the request was successful
data
object
required
Audit record summary

Example Response

{
  "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"
}

Error Responses

Audit Record Not Found

{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Audit record not found for run: run_abc123"
  }
}