Skip to main content
GET
https://agentgate.mynewapi.com
/
api
/
v1
/
audit
/
runs
/
{runId}
/
snapshots
Get Config Snapshots
curl --request GET \
  --url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "<string>",
        "workOrderId": "<string>",
        "runId": "<string>",
        "iteration": 123,
        "snapshotAt": "<string>",
        "configHash": "<string>",
        "config": {}
      }
    ],
    "total": 123
  }
}

Get Config Snapshots

Returns all configuration snapshots taken during a run, showing the state at each iteration.

Request

runId
string
required
The run ID to get snapshots for
iteration
number
Filter to a specific iteration
curl "https://agentgate.mynewapi.com/api/v1/audit/runs/run_abc123/snapshots?iteration=2" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

success
boolean
required
Indicates if the request was successful
data
object
required
Snapshot list

Example Response

{
  "success": true,
  "data": {
    "items": [
      {
        "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
          }
        }
      },
      {
        "id": "snap_002",
        "workOrderId": "wo_xyz789",
        "runId": "run_abc123",
        "iteration": 1,
        "snapshotAt": "2024-01-15T10:45:00.000Z",
        "configHash": "sha256:abc123...",
        "config": {
          "loopStrategy": {
            "mode": "hybrid",
            "maxIterations": 10
          },
          "verification": {
            "skipLevels": []
          },
          "gitOps": {
            "mode": "github-pr"
          },
          "executionLimits": {
            "maxWallClockSeconds": 3600
          }
        }
      }
    ],
    "total": 2
  },
  "requestId": "req_abc123"
}