cURL
curl --request GET \ --url https://agentgate.mynewapi.com/api/v1/work-orders/{id}/audit \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "workOrderId": "<string>", "runs": [ { "runId": "<string>", "iteration": 123, "startedAt": "<string>", "configHash": "<string>", "changesCount": 123 } ] } }
Get audit trail for a work order across all runs
wo_abc123
curl https://agentgate.mynewapi.com/api/v1/work-orders/wo_abc123/audit \ -H "Authorization: Bearer YOUR_API_KEY"
Show properties
{ "success": true, "data": { "workOrderId": "wo_abc123", "runs": [ { "runId": "run_001", "iteration": 5, "startedAt": "2024-01-15T10:30:00.000Z", "configHash": "sha256:abc123def456...", "changesCount": 2 }, { "runId": "run_002", "iteration": 3, "startedAt": "2024-01-15T11:00:00.000Z", "configHash": "sha256:abc123def456...", "changesCount": 0 } ] }, "requestId": "req_xyz789" }
{ "success": false, "error": { "code": "NOT_FOUND", "message": "Work order not found: wo_invalid" }, "requestId": "req_xyz789" }
# Get detailed audit for a specific run curl https://agentgate.mynewapi.com/api/v1/audit/runs/run_001 \ -H "Authorization: Bearer YOUR_API_KEY"