Get Config Snapshots
curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots \
--header 'Authorization: Bearer <token>'import requests
url = "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots"
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}/snapshots', 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}/snapshots",
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}/snapshots"
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}/snapshots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots")
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": [
{
"id": "<string>",
"workOrderId": "<string>",
"runId": "<string>",
"iteration": 123,
"snapshotAt": "<string>",
"configHash": "<string>",
"config": {}
}
],
"total": 123
}
}Audit
Get Config Snapshots
Get configuration snapshots for a run
GET
/
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>'import requests
url = "https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots"
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}/snapshots', 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}/snapshots",
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}/snapshots"
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}/snapshots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/audit/runs/{runId}/snapshots")
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": [
{
"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
The run ID to get snapshots for
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
Indicates if the request was successful
Snapshot list
Show properties
Show properties
Total number of snapshots
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"
}
⌘I