Time-binned credits and USD spend across an org, grouped by product surface.
Path parameters
Query parameters
Bucket size for aggregation (minute, hour, or day).
Inclusive range start (epoch milliseconds). Defaults: 1h / 1d / 30d before to by group_by.
Exclusive range end (epoch milliseconds). Defaults to now.
Restrict to spend attributed to a specific user.
Restrict to spend attributed to a single project. Omit for org-wide totals.
Restrict to one product surface (e.g. composer, app_run, kb_query, kb_file_parsing); legacy selects spend recorded before source attribution existed.
Response
Costs analytics
Changes
Changed in 2 of the 51 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 238 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲