Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
*/*
Request body
Available options:
COUNT
, SUM
, AVG
, COUNT_UNIQUE
, LATEST
, SUM_WITH_MULTIPLIER
, MAX
Example:
"api_request"
BillingAnchor enables custom monthly billing periods for usage aggregation.
When to use:
- WindowSize = "MONTH" AND you need custom monthly periods (not calendar months)
- Subscription billing that doesn't align with calendar months
- Example: Customer signed up on 15th, so billing periods are 15th to 15th
When NOT to use:
- WindowSize != "MONTH" (ignored for DAY, HOUR, WEEK, etc.)
- Standard calendar-based billing (1st to 1st of each month)
Example values:
- "2024-03-05T14:30:45.123456789Z" (5th of each month at 2:30:45 PM)
- "2024-01-15T00:00:00Z" (15th of each month at midnight)
- "2024-02-29T12:00:00Z" (29th of each month at noon - handles leap years)
Example:
"2024-03-05T14:30:45.123456789Z"
Available options:
MINUTE
, 15MIN
, 30MIN
, HOUR
, 3HOUR
, 6HOUR
, 12HOUR
, DAY
, WEEK
, MONTH
Example:
"customer456"
Example:
"2024-03-20T00:00:00Z"
Example:
"customer456"
will be empty/ignored in case of COUNT
Example:
"request_size"
Example:
"2024-03-13T00:00:00Z"
Available options:
MINUTE
, 15MIN
, 30MIN
, HOUR
, 3HOUR
, 6HOUR
, 12HOUR
, DAY
, WEEK
, MONTH