List daily usage
List daily deployment resource cost data. Enterprise+ tier only.
GET
Error
Astronomer writes usage data with a scheduled sync and doesn’t publish a data freshness service level agreement for this endpoint. The most recent usage date is often still loading when you query it, so every response reports how far the load has progressed:
Both fields describe all usage data for the Organization, not only the rows that match your filters. The response omits both fields when the Organization has no cost data.
A finished load doesn’t mean the values are final. The
cost and qty values for a date on or before completeThroughDate can still change on a later sync. Restatements are usually limited to the last 4 days. Corrections further back are possible, but uncommon.
For a daily export:
- Query with a short rolling lookback window, for example 7 days, by setting
startDatea few days beforeendDate. The overlap picks up restated rows. - Keep only rows dated on or before
completeThroughDate, and load later rows on a future run.
Authorizations
Query Parameters
Fields to sort by, formatted as <fieldName>:asc or <fieldName>:desc. Applies to offset and cursor mode.
Available options:
id:asc, id:desc, date:asc, date:desc, organizationId:asc, organizationId:desc, workspaceId:asc, workspaceId:desc, deploymentId:asc, deploymentId:desc, resource:asc, resource:desc, cost:asc, cost:desc, qty:asc, qty:desc, unit:asc, unit:desc Response
OK
- astronomer
- focus
Error