Levain LabsLevain Labs
API ReferenceRuns

List Run Daily Counts

Daily run counts grouped by status for one agent.

Covers the trailing days window including today (default 7, max 90), counting customer-initiated runs by the UTC calendar day they were created on. Use it to chart run volume and outcomes over time without paging the full run list. Days or statuses with no runs are omitted from the response.

GET
/api/v1/runs/daily

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

agent_id*Agent Id
Formatuuid
days?Days
Default7
Range1 <= value <= 90

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/runs/daily?agent_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
[
  {
    "date": "2019-08-24",
    "status": "string",
    "count": 0
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}