API ReferenceRuns
List Runs
List recent customer-agent runs for the workspace, newest first.
List recent customer-agent runs for the workspace, newest first.
Optional agent_id filters to one agent. Platform-initiated runs have their own
surface (/api/v1/platform-runs) and never appear here. Capped at 200 entries
per request.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Query Parameters
limit?Limit
Default
50agent_id?|null
Header Parameters
X-API-Key?string|null
Response Body
application/json
application/json
curl -X GET "https://api.levainlabs.com/api/v1/runs/"[
{
"id": "string",
"status": "string",
"paused": false,
"cost_usd": 0,
"billed_usd": 0,
"sandbox_billed_usd": 0,
"sandbox_seconds": 0,
"tokens_in": 0,
"tokens_out": 0,
"started_at": "string",
"finished_at": "string",
"error": "string",
"agent_id": "string",
"agent_version_id": "string",
"agent_version": 0,
"parent_run_id": "string",
"session_id": "string",
"user_prompt": "string",
"created_at": "string",
"kind": "agent",
"artifact_count": 0,
"artifact_count_truncated": false,
"latency": {
"queue_wait_ms": 0,
"sandbox": "warm",
"sandbox_ms": 0,
"code_fetch_ms": 0,
"code_deliver_ms": 0,
"first_node_ms": 0,
"total_ms": 0
}
}
]