Get Usage Summary
Usage
Get Usage Summary
Daily usage breakdown for the organization
GET
Get Usage Summary
Beta. The usage summary schema is new and may evolve. Field names should be stable, but we reserve the right to add fields or adjust response shape before general availability.
Overview
Returns a pre-aggregated usage breakdown for the authenticated organization over a date range. Reads from daily rollups for fast queries, then attaches the current billing period’s quota status. Group the results byday, endpoint_type, or api_key, and optionally filter to a single endpoint type. Requires the billing:read scope. Querying the summary does not consume metered usage.
Query Parameters
Start of date range (
YYYY-MM-DD).End of date range (
YYYY-MM-DD), inclusive.Grouping dimension. One of
day, endpoint_type, or api_key.Restrict the summary to a specific endpoint type. Itemized metered types are
search and read. check is shipped and quota-metered (POST /v1/goods-services/suggest) but not yet itemized here; others — screening, clearance, image_search, export — exist in plan config but have no shipped endpoints yet. When set, the billing_period.quota_limit reflects that endpoint type’s specific plan allowance.Response
Always
"list".Always
false — the summary is fully returned in one response.Request ID for debugging.
Code Examples
Errors
| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Missing start_date/end_date, invalid date format, or start_date > end_date |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks billing:read |
| 429 | rate_limited | Too many requests |
Related Endpoints
- Get Usage — current billing period totals by endpoint type
- List Request Logs — per-request audit trail