Compare costs across periods
Compare costs between two time periods. Returns per-dimension comparisons with absolute and percentage deltas, plus aggregated totals for all key metrics.
Documentation Index
Fetch the complete documentation index at: https://docs.cloudcapital.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Generate an API key from your
Cloud Capital dashboard under Settings > API keys.
Include it in the Authorization header as a Bearer token.
Body
Metric to compare across periods
amortized_cost, billed_cost, cash_cost, on_demand_cost, total_savings, commitment_savings, spot_savings, effective_savings_rate Filters for comparison (same structure as Filters but without dateRange/billingPeriods since periods are specified explicitly).
Response
Comparison data retrieved successfully
Successful HTTP responses wrap the endpoint-specific body in data.
Each operation's 200 response schema is this object merged (allOf)
with a data property referencing the payload schema for that endpoint.

