Skip to main content
GET
/
metering
/
meters
/
{meterId}
Retrieve consumption data by its id
curl --request GET \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/metering/meters/{meterId} \
  --header 'Authorization: Bearer <token>' \
  --header 'cdf-version: <cdf-version>'
{
  "meterId": "atlas.monthly_ai_tokens",
  "datapoints": []
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Headers

cdf-version
enum<string>
required
Available options:
20230101-alpha

Path Parameters

meterId
string
required

Metering is identified by an id containing the service name and a service-scoped metering name.

For instance atlas.monthly_ai_tokens is the id of the atlas service metering monthly_ai_tokens.

Service and metering names are always in lower_snake_case.

Query Parameters

start
integer<int64>

Start timestamp (inclusive) for historical data, in milliseconds since epoch. When provided along with end and numberOfDatapoints, returns time-series data.

end
integer<int64>

End timestamp (inclusive) for historical data, in milliseconds since epoch. Defaults to the current time if not provided.

numberOfDatapoints
integer<int32>
default:0

Number of data points to return between start and end. The time range is divided into equal buckets, and the average value for each bucket is returned.

Required range: 0 <= x <= 600

Response

The requested consumption data. Returns meter metadata unless 'start' and 'numberOfDataPoints' are provided. When they are provided, includes historical time-series data with averaged values.

A singular representation of the current consumption.

meterId
string
required

Metering is identified by an id containing the service name and a service-scoped metering name.

For instance atlas.monthly_ai_tokens is the id of the atlas service metering monthly_ai_tokens.

Service and metering names are always in lower_snake_case.

datapoints
object[]
required

Timestamped data points with average values. Empty for list operations, populated when retrieving specific meters.

Last modified on April 23, 2026