📊 Usage BillingMeters

Get meter quantities

Get bucketed quantities for a meter over a time period. Timestamps are UTC. Polar-compatible query names (start_timestamp, end_timestamp, interval) are required.

GET/meters/{id}/quantities

Get bucketed quantities for a meter over a time period. Timestamps are UTC. Polar-compatible query names (start_timestamp, end_timestamp, interval) are required.


Related endpoints

  • GET /meters — List meters
  • POST /meters — Create a meter
  • GET /meters/{id} — Get a meter
  • PATCH /meters/{id} — Update a meter

Common errors

  • 400 invalid_request — malformed payload or failed validation.
  • 401 authentication_error — missing, invalid, expired, or revoked credential. Codes: authentication_failed, invalid_api_key, expired_api_key, api_key_revoked, session_invalid, merchant_required. Carries a WWW-Authenticate: Bearer challenge.
  • 404 resource_missing — the referenced resource does not exist or is not visible to your key.

Authorization

x-api-key<token>

Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.

In: header

Scope: meters:read

Path Parameters

id*string

Meter UUID.

Formatuuid

Query Parameters

start_timestamp*string

Start timestamp (ISO 8601, UTC)

Formatdate-time
end_timestamp*string

End timestamp (ISO 8601, UTC)

Formatdate-time
interval*string

Bucket width. UTC date_trunc semantics; week is ISO (Monday).

Value in

  • "hour"
  • "day"
  • "week"
  • "month"
  • "year"
customer_id?string

Filter by customer UUID

Formatuuid
external_customer_id?string

Filter by the merchant's external customer ID

subscription_id?string

Filter by subscription UUID

Formatuuid
timezone?string

Only UTC is supported. Omit or pass UTC.

Response Body

application/json

application/json

application/json

application/json

application/json

Stuck on an error response? Ask the RevKeen assistant to explain it.
curl -X GET "https://api.revkeen.com/v2/meters/11111111-1111-4111-8111-111111111111/quantities?start_timestamp=2026-03-01T00%3A00%3A00Z&end_timestamp=2026-03-08T00%3A00%3A00Z&interval=day&customer_id=11111111-1111-4111-8111-111111111111" \
  -H "x-api-key: $REVKEEN_API_KEY"

Synthetic documentation data, validated against the response schema; not a live API result.

{  "object": "meter_quantities",  "meter_id": "7c8d9e0f-1a2b-4630-8d4e-5f6a7b8c9d01",  "start_timestamp": "2026-04-16T00:00:00.000Z",  "end_timestamp": "2026-04-19T00:00:00.000Z",  "interval": "day",  "quantities": [    {      "timestamp": "2026-04-16T00:00:00.000Z",      "quantity": 412    },    {      "timestamp": "2026-04-17T00:00:00.000Z",      "quantity": 398    },    {      "timestamp": "2026-04-18T00:00:00.000Z",      "quantity": 440    }  ]}

Put this endpoint to work

Last updated 19 Oct 2026 by David Lindblad