Get Config Changes
curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes \
--header 'Authorization: Bearer <token>'import requests
url = "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"iteration": 123,
"path": "<string>",
"previousValue": "<any>",
"newValue": "<any>",
"changedAt": "<string>"
}
],
"total": 123,
"summary": {
"totalChanges": 123,
"changedPaths": [
{}
]
}
}
}Audit
Get Config Changes
Get configuration changes for a run
GET
/
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>'import requests
url = "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
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
Indicates if the request was successful
Changes list
Show properties
Show properties
Total number of changes
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
⌘I