Skip to main content
GET
https://agentgate.mynewapi.com
/
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"
  }
}
id
string
required
Run ID (format: run_xxxxx).
id
string
Run identifier.
workOrderId
string
Associated work order ID.
status
string
Current status: pending, running, succeeded, failed, cancelled.
iterations
integer
Number of completed iterations.
prUrl
string
Pull request URL (if changes were made).
timing
object
Timing information.
cost
object
Cost information.
tenantContext
object
Tenant context (if provided).
error
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"
  }
}