curl https://agentgate.mynewapi.com/v1/runs/run_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "run_abc123",
"workOrderId": "wo_xyz789",
"status": "succeeded",
"iterations": 3,
"prUrl": "https://github.com/org/repo/pull/42",
"timing": {
"startedAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:35:00Z",
"durationMs": 300000
},
"cost": {
"credits": 150
},
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
}
}
Runs
Get Run
Get detailed information about a run
GET
/
v1
/
runs
/
{id}
curl https://agentgate.mynewapi.com/v1/runs/run_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "run_abc123",
"workOrderId": "wo_xyz789",
"status": "succeeded",
"iterations": 3,
"prUrl": "https://github.com/org/repo/pull/42",
"timing": {
"startedAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:35:00Z",
"durationMs": 300000
},
"cost": {
"credits": 150
},
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
}
}
string
required
Run ID (format:
run_xxxxx).string
Run identifier.
string
Associated work order ID.
string
Current status:
pending, running, succeeded, failed, cancelled.integer
Number of completed iterations.
string
Pull request URL (if changes were made).
object
object
Tenant context (if provided).
object
Error information (if failed).
curl https://agentgate.mynewapi.com/v1/runs/run_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "run_abc123",
"workOrderId": "wo_xyz789",
"status": "succeeded",
"iterations": 3,
"prUrl": "https://github.com/org/repo/pull/42",
"timing": {
"startedAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:35:00Z",
"durationMs": 300000
},
"cost": {
"credits": 150
},
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
}
}