Get run analytics

http
GET /account/analytics/runs

Read run analytics for the selected or default account. Requires account.billing.read.

Parameters

NameInRequiredDescription
account_idqueryAccount to report; omitted, use the authorized context account or caller default. Requires account.billing.read.
presetqueryWhole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.
fromqueryInclusive start. Supply both from and to; these bounds take precedence over preset.
toqueryExclusive end, no later than the end of today in timezone.
timezonequery
granularityqueryUTC hours, or local calendar days, Monday-based weeks and months.
group_byqueryGrouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.
comparequeryCompare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.
labelquery
project_referencequeryOptional project UUID or slug to scope analytics to a single project.

Responses

StatusDescription
200Account run analytics statistics.
400Bad request
401Unauthorized
403Forbidden
404Not found
429Rate limit exceeded
500Server error