Skip to main content
GET
List a subscription's usage costs over time

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscription_id
string<MeteroidId>
required

Subscription ID

Example:

"sub_7n42DGM5Tflk9n8mt7Fhc7"

Query Parameters

metric
string
required

Billable metric, by ID or code.

group_by
string

Event property to split the usage by.

granularity
enum<string>
required
Available options:
HOUR,
DAY,
MONTH
from
string<date-time>
required

Start of the range, inclusive.

to
string<date-time>
required

End of the range, exclusive. At most 93 days after from.

Response

Usage and cost per bucket

data
object[]
required