v1

latestOpenAPI 3.0.0CoreStack Inc License2026-07-248001,5071.7 MB
Billing

Aggregate rate in a trend based on input criteria

Generate Rate aggregation trend.

post/v2/billing/rate/aggregation/trend

Request body

service_account_idsstring[]

Service Account IDs

start_datestring date-time required

start of the spend period

end_datestring date-time required

end of the spend period

time_zonestring

Optional timezone of the caller

platform'kubernetes'

Platforms

skip_service_account_groupingboolean

If set, do not group by service account

billing_sourcestring required

Billing plan to select data from

Example request

{
  "platform": "kubernetes",
  "group_by": [
    {
      "selector": "service_account_tags"
    }
  ]
}

Response

Success

timestampsstring[]
valuesnumber[]

Example response

[
  {
    "identity": {
      "currency": "AED"
    }
  }
]