Skip to content
GET/api/v1/usage/keys/{key_id}

Get Key Usage

Return detailed usage for one API key owned by the authenticated user.

Request example

json
json
{
  "tasks": [
    {
      "id": "T1",
      "duration_days": 5
    }
  ]
}

Response example

json
json
{
  "score": 92,
  "grade": "A"
}

Response fields from OpenAPI contract

This table is generated from the endpoint response schema in openapi.json.

FieldTypeRequiredDescription
key_idstringRequiredAPI key UUID
key_prefixstringRequiredVisible key prefix
periodobjectRequiredBilling period window (UTC month boundaries).
period.startstringRequiredPeriod start (UTC)
period.endstringRequiredPeriod end (UTC)
totalsobjectRequiredAggregated totals for the key
endpoint_breakdownarray<unknown>OptionalNo description in OpenAPI contract.
endpoint_breakdown[].endpointstringOptionalEndpoint path
endpoint_breakdown[].callsintegerOptionalCalls for this endpoint
endpoint_breakdown[].tasksintegerOptionalTasks processed for this endpoint
endpoint_breakdown[].errorsintegerOptionalError responses for this endpoint
endpoint_breakdown[].avg_response_msnumberOptionalAverage response time in ms
hourlyarray<unknown>OptionalNo description in OpenAPI contract.
hourly[].hourstringOptionalUTC hour bucket
hourly[].callsintegerOptionalNo description in OpenAPI contract.
hourly[].tasksintegerOptionalNo description in OpenAPI contract.
hourly[].errorsintegerOptionalNo description in OpenAPI contract.

Schema

json-schema
{
  "$ref": "#/components/schemas/UsageKeyDetailResponse"
}

Authentication

  • API key required

Reference details

Operation ID
get_key_usage
Section
Usage & Quota
Tags
Usage & Quota

Was this page helpful?

Your feedback helps us improve docs, reference pages, and Playground flows.

Topic: Get Key Usage · Page: /docs/api-reference/get_key_usage

TermsPrivacyContact

Schedule analysis guidance. Not legal advice. You remain responsible for contract and agency compliance.