Skip to main content
GET
https://agentgate.mynewapi.com
/
api
/
v1
/
audit
/
runs
/
{runId}
/
changes
Get Config Changes
curl --request GET \
  --url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "items": [
      {
        "iteration": 123,
        "path": "<string>",
        "previousValue": "<any>",
        "newValue": "<any>",
        "changedAt": "<string>"
      }
    ],
    "total": 123,
    "summary": {
      "totalChanges": 123,
      "changedPaths": [
        {}
      ]
    }
  }
}

Get Config Changes

Returns all configuration changes that occurred during a run, tracking what was modified and when.

Request

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

Response

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

Example Response

{
  "success": true,
  "data": {
    "items": [
      {
        "iteration": 3,
        "path": "loopStrategy.maxIterations",
        "previousValue": 10,
        "newValue": 15,
        "changedAt": "2024-01-15T10:50:00.000Z"
      },
      {
        "iteration": 4,
        "path": "verification.skipLevels",
        "previousValue": [],
        "newValue": ["L2"],
        "changedAt": "2024-01-15T11:00:00.000Z"
      }
    ],
    "total": 2,
    "summary": {
      "totalChanges": 2,
      "changedPaths": [
        "loopStrategy.maxIterations",
        "verification.skipLevels"
      ]
    }
  },
  "requestId": "req_abc123"
}

Use Cases

  • Debugging: Understand why a run behaved differently than expected
  • Compliance: Audit trail for configuration changes
  • Analysis: Track which settings are commonly adjusted during runs