Skip to main content
GET
https://agentgate.mynewapi.com
/
v1
/
runs
curl "https://agentgate.mynewapi.com/v1/runs?status=succeeded&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "run_abc123",
      "workOrderId": "wo_xyz789",
      "status": "succeeded",
      "iterations": 3,
      "createdAt": "2024-01-15T10:30:00Z",
      "completedAt": "2024-01-15T10:35:00Z"
    }
  ],
  "total": 42,
  "limit": 10,
  "offset": 0
}
status
string
Filter by status: pending, running, succeeded, failed, cancelled.
tenantId
string
Filter by tenant ID.
tenantUserId
string
Filter by tenant user ID.
limit
integer
default:20
Results per page (max 100).
offset
integer
default:0
Number of results to skip.
data
array
Array of run objects.
total
integer
Total number of matching runs.
limit
integer
Current limit value.
offset
integer
Current offset value.
curl "https://agentgate.mynewapi.com/v1/runs?status=succeeded&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "run_abc123",
      "workOrderId": "wo_xyz789",
      "status": "succeeded",
      "iterations": 3,
      "createdAt": "2024-01-15T10:30:00Z",
      "completedAt": "2024-01-15T10:35:00Z"
    }
  ],
  "total": 42,
  "limit": 10,
  "offset": 0
}