$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "auditCapsule": {
< "schema": "audit-capsule/1.0",
< "runId": "run_demo_001",
< "durationMs": 18260,
< "events": [
< {
< "schema": "runtime-event/1.0",
< "eventId": "evt_1",
< "runId": "run_demo_001",
< "timestampMs": 1757000000000,
< "type": "MODEL_CALL",
< "nodeId": "planner",
< "nodeType": "AGENT",
< "provider": "anthropic",
< "model": "claude-sonnet-5",
< "inputTokens": 2100,
< "cachedInputTokens": 0,
< "cacheWriteTokens": 46000,
< "outputTokens": 520,
< "latencyMs": 2140,
< "status": "SUCCESS"
< },
< {
< "schema": "runtime-event/1.0",
< "eventId": "evt_2",
< "runId": "run_demo_001",
< "timestampMs": 1757000004200,
< "type": "MODEL_CALL",
< "nodeId": "researcher",
< "nodeType": "AGENT",
< "provider": "anthropic",
< "model": "claude-sonnet-5",
< "inputTokens": 1400,
< "cachedInputTokens": 46000,
< "cacheWriteTokens": 0,
< "outputTokens": 880,
< "latencyMs": 1310,
< "status": "SUCCESS"
< },
< {
< "schema": "runtime-event/1.0",
< "eventId": "evt_3",
< "runId": "run_demo_001",
< "timestampMs": 1757000009600,
< "type": "MODEL_CALL",
< "nodeId": "researcher",
< "nodeType": "AGENT",
< "provider": "anthropic",
< "model": "claude-sonnet-5",
< "inputTokens": 1900,
< "cachedInputTokens": 46800,
< "cacheWriteTokens": 0,
< "outputTokens": 640,
< "latencyMs": 1180,
< "status": "SUCCESS"
< },
< {
< "schema": "runtime-event/1.0",
< "eventId": "evt_4",
< "runId": "run_demo_001",
< "timestampMs": 1757000014800,
< "type": "MODEL_CALL",
< "nodeId": "writer",
< "nodeType": "AGENT",
< "provider": "anthropic",
< "model": "claude-sonnet-5",
< "inputTokens": 49300,
< "cachedInputTokens": 0,
< "cacheWriteTokens": 0,
< "outputTokens": 1240,
< "latencyMs": 3460,
< "status": "SUCCESS"
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/truesoft~ai-agent-cost-token-savings-auditor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'