Levain LabsLevain Labs
API ReferenceRuns

List Run Stats

Per-agent run totals for the workspace.

Per-agent run totals for the workspace.

Returns one entry per agent with at least one run: the agent's total run count plus the creation time and status of its most recent run. Use it to summarize activity across agents without paging the full run list via GET /api/v1/runs. Agents with no runs are omitted.

GET
/api/v1/runs/stats

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/runs/stats"
[
  {
    "agent_id": "string",
    "run_count": 0,
    "last_run_at": "string",
    "last_run_status": "string"
  }
]