Discovery

API usage aggregations

Returns aggregated API usage metrics for the authenticated account. Required by partners that bill their own clients on individual per-sub-key consumption.

Filters: from/to (ISO date), granularity (day/week/month), api_key_id, endpoint. Format: JSON (default) or CSV with ?format=csv.

get/api/v1/usage

Request

  • Base URL: https://legal.nexusquantum.legal
  • URL: https://legal.nexusquantum.legal/api/v1/usage
  • Auth: HTTP bearer

Query parameters

fromstring date

ISO date inclusive (default: 30d ago)

tostring date

ISO date inclusive (default: today)

granularity'day' | 'week' | 'month'
api_key_idstring uuid

Filter to a specific sub-key.

endpointstring

Filter by route (e.g. /api/v1/analyze).

format'json' | 'csv'

Response

Usage aggregations.

by_endpointobject[]
bucketsobject[]

Changes

No recorded changes to this operation across all 1 revision of this API.