Returns detailed usage metrics for a specific brick within a subscription, including pre-commitment amounts, used quantities, and remaining units. The remaining value can be negative if usage exceeds the pre-commitment amount. If no pre-commitment is set, pre_commitment and remaining will be 0. For pool bricks (usage aggregators), overages and overage_rate will always be 0/null; overage information appears on the individual bricks that contribute to the pool. By default, returns all historical periods. Use query parameters to filter results.
API key for authentication
Set to '1' or 'true' to only return usage for the current period.
1, True, true Filter periods starting on or after this date. Accepts ISO 8601 format (e.g., '2024-01-01' or '2024-01-01T00:00:00'). Date-only values are interpreted in the system timezone.
Filter periods ending before this date. To include periods ending on a specific date, specify the following day. Accepts ISO 8601 format (e.g., '2024-12-31' or '2024-12-31T23:59:59'). Date-only values are interpreted in the system timezone. Example: to=2025-05-01 includes periods through April 30.
Brick utilization serializer for utilization API.
The period's start date and time
The period's end date and time
The unique identifier of the subscription
The unique identifier of the brick within the subscription
The display name of the brick
The pre-committed amount of units for this brick. Will be 0 if no pre-commitment is set.
The number of units that have been used so far. Calculated as pre_commitment - remaining.
The number of units that exceeded the pre-commitment. Will be 0 if usage has not exceeded pre-commitment, if no pre-commitment is set, or if this is a pool brick (overages only appear on the individual bricks, not on the pool itself).
The number of units remaining in the pre-commitment. Can be negative if usage exceeds pre-commitment.
The unit of measurement for this brick (e.g., 'API calls', 'GB', etc.). Defaults to 'units' if not specified.
The cost per overage unit. Multiply overages * overage_rate to get total overage cost. Will be null if no overages, no overage pricing configured, or if this is a pool brick (overage rates only appear on the individual bricks, not on the pool itself).