/api/v1/costs
POST /costs/sync — trigger billing sync
Fetches the latest billing data from all connected providers.Response 202
GET /costs/overview — get cost overview
Returns the current month’s spend, last month’s total, and a breakdown by provider.Response
GET /costs/trend — get cost trend
Returns daily, weekly, or monthly cost data grouped by provider, service, or region.Query parameters
Filter to a specific provider. Defaults to all providers.
Number of days of history to return.
Aggregation granularity:
day, week, or month.Group breakdown by:
provider, service, or region.Response
GET /costs/forecast — get cost forecast
Returns a projected spend total with confidence interval and daily breakdown.Query parameters
Forecast horizon in days:
30, 60, or 90.Scope forecast to a specific provider.
Response
GET /costs/anomalies — list cost anomalies
Returns days where actual spend exceeded the expected range.Query parameters
Filter by provider.
Look-back window in days.
Filter by status:
active or dismissed.POST /costs/anomalies//dismiss — dismiss anomaly
Request body
Reason for dismissing the anomaly, for example
Planned migration.