Billing

Get organization usage costs

Returns a grand total and a list of daily, per-entity organization usage cost records for the organization in the queried time period (maximum 31 days). All days in both the request and the response are evaluated based on the UTC timezone.

get/v1/organizations/{organizationId}/usageCost

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the requested organization.

Query parameters

from_date, string date required
Example:2024-12-19

Start date for the report, e.g. 2024-12-19.

to_date, string date required
Example:2024-12-20

End date (inclusive) for the report, e.g. 2024-12-20. This date cannot be more than 30 days after from_date (for a maximum queried period of 31 days).

filter, string[]

Filter criteria to apply when retrieving the usage cost report. Currently, only filtering by resource tags is supported.

[
  "tag1=value1",
  "tag2=value2"
]

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, UsageCost

Example response

{
  "status": 200,
  "result": {
    "costs": [
      {
        "date": "2024-12-19"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 35 revisions of this API.