Dimension Data API

Get numeric dimension summary

Returns a single aggregated numeric value (SUM/AVG/MIN/MAX) for a numeric custom dimension. Call it with a GET request to /dimension-data/numeric-summary, authenticated with a restricted API key and the "costs:read" scope.

GET https://api.bearlumen.com/v1/dimension-data/numeric-summary

Returns a single aggregated numeric value (SUM/AVG/MIN/MAX) for a numeric custom dimension. Only works with dimensions of value_type 'number'. Requests count toward your per-API-key rate limit; sustained overruns return 429 with the standard error envelope.

Authentication and scopes

Authenticate with a restricted API key in the Authorization: Bearer <key> header. This endpoint requires the costs:read scope.

Parameters

NameInTypeRequiredDescription
dimension_keyquerystringYesNumeric dimension key to aggregate, exactly as returned by GET /dimension-data/definitions (snake_case, case-sensitive).
aggregationquerysum | avg | min | maxYesAggregation function (sum, avg, min, max).
start_datequerystringYesStart of date range (ISO 8601, inclusive).
end_datequerystringYesEnd of date range (ISO 8601, exclusive).

Response example

Success response (200):

JSON
{
  "aggregation": "sum",
  "dimension_key": "batch_size",
  "event_count": 8,
  "value": "928"
}

Error codes

Errors return the standard error envelope with a code, message, and a correlationId you can quote to support.

StatusWhen it happens
400Invalid request. Check date formats, use an aggregation of sum, avg, min, or max, and target a dimension with value_type "number".
401Authentication required. Provide a valid API key in the Authorization header.
403Insufficient permissions. Use an API key with the costs:read scope.
404Dimension not found. Pass a dimension_key exactly as returned by GET /dimension-data/definitions (snake_case, case-sensitive).
429Rate limit or plan quota exceeded. Slow down and retry after the current window resets.

Rate limits and retries

Rate limit or plan quota exceeded. Slow down and retry after the current window resets.