Skip to main content
GET
/
v1
/
runs-stats
Aggregate run usage for the current org over a date range
curl --request GET \
  --url https://api.runflow.io/v1/runs-stats \
  --header 'Authorization: Bearer <token>'
{
  "timeline": [
    {
      "date": "2023-12-25",
      "runs": 123,
      "spend": "<string>"
    }
  ],
  "by_flow": [
    {
      "flow_slug": "<string>",
      "flow_name": "<string>",
      "runs": 123,
      "spend": "<string>",
      "avg_duration_ms": 123
    }
  ],
  "by_source": [
    {
      "runs": 123,
      "pct": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.runflow.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Organization-Id
string | null

Query Parameters

start
string<date-time>
required

Inclusive lower bound on Run.created_at (ISO-8601, UTC).

end
string<date-time>
required

Inclusive upper bound on Run.created_at (ISO-8601, UTC).

Response

Successful Response

Aggregate run usage for one org over [start, end].

timeline
UsageDataPoint · object[]
required
by_flow
UsageByFlow · object[]
required
by_source
UsageBySource · object[]
required