List Agent Runs
GET /agent/runs
GET
/agent/runs
List runs this key can see: its own, plus org-wide shared ones.
Reconciles abandoned rows before reading, so a run whose worker was recycled
reports failed rather than sitting at running forever.
Authorizations
Parameters
Query Parameters
statuses
Any of:
Array<string>
null
Optional repeatable status filter: ?statuses=running&statuses=queued
include_shared
When true (default), include org-wide shared runs. When false, return only runs this key owns.
boolean
When true (default), include org-wide shared runs. When false, return only runs this key owns.
limit
integer
offset
integer
Header Parameters
Responses
200
Successful Response
object
data
required
object
runs
required
Array<object>
One run. Identical shape whether read from the list or on its own.
object
agent_id
required
string
created_at
required
string
credits_spent
integer
status
required
string
title
required
string
updated_at
required
string
visibility
required
string
work_item_id
required
string
total
required
integer
pagination
Any of:
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string