v1

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

Aggregate usage in a trend based on input criteria

Generate usage aggregation trend.

post/v2/billing/usage/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

granularityinteger required

Number of seconds between steps

limitinteger

If set, limits the results to given number.

Example request

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

Response

Success

timestampsstring[]
valuesnumber[]

Example response

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