Get factory spend grouped by a dimension
Changed onThe factory's spend over a UTC date range, grouped by source, user, agent, or model. groups lists every entity with nonzero spend in the range (uncapped); UNKNOWN sorts last. Pass group_by_period to additionally receive per-period series aligned to period_list.
Request
- Base URLhttps://app.warp.dev/api/v1
- AuthHTTP bearer
Path parameters
The public UID of the factory.
Query parameters
Grouping dimension for the cost-breakdown metric. source and user roll each run tree's cost to the root run; agent and model keep each run's own cost.
The dimension to group spend by.
Inclusive RFC3339 range start (UTC). Defaults to end_date minus 30 days.
Exclusive RFC3339 range end (UTC). Defaults to now.
Binning granularity for factory metrics series. Weeks start on Sunday (UTC), consistent with existing Warp analytics.
Optional binning granularity; when omitted, the response contains aggregates only. Binned requests are capped at 365 periods.
Response
Grouped spend for the requested range
Changes
- info
api tag
factory-metricsadded - info
api tag
factoryremoved
- info
- info
endpoint added
- info