Report

Reports - API Usage

Daily API-request aggregates over publisher.api_request_log. Admin sees all publisher traffic; narrow with publisher_id or publisher_account_id. Query hits the monthly-partitioned request log — wide ranges cross partition boundaries but stay indexed on created_at. Group by date, account, publisher.

get/admin/v1/reports/api-usage

Request

  • Base URL: https://api.juju.com
  • URL: https://api.juju.com/admin/v1/reports/api-usage
  • Auth: none declared

Query parameters

fromstring date required
tostring date required
publisher_idinteger
publisher_account_idinteger
group_bystring[]

Group-by dimensions (repeat or CSV). Allowed set is per report (see the reports changelog); default date. Id filters accept a single value or a CSV/repeat list.

bucket'day' | 'week' | 'month'

Date bucket: day|week|month (default day).

Response

Daily rows, ordered by report_date DESC.

metaobject required

Pagination and context metadata. Always present, empty object ({}) when no metadata applies to the response.

errorsstring[] required

Empty array on success. On failure, human-readable error strings suitable for surfacing to end users.

Example response

{
  "errors": []
}

Changes

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