Skip to main content
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 by day, 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_date
string
required
Start of date range (YYYY-MM-DD).
end_date
string
required
End of date range (YYYY-MM-DD), inclusive.
group_by
string
default:"day"
Grouping dimension. One of day, endpoint_type, or api_key.
endpoint_type
string
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.credits_limit reflects that endpoint type’s specific plan allowance.

Response

object
string
Always "list".
data
object[]
has_more
boolean
Always false — the summary is fully returned in one response.
billing_period
object
request_id
string
Request ID for debugging.

Code Examples

Errors