API Key Usage

Get monthly request usage stats for the authenticated API key via GET /v1/usage.

1 min read
Share

This endpoint returns usage metrics for the current API key in the active billing period.

Per-key usage, not account aggregate

/v1/usage reports usage for the key that made the request. If you have multiple keys, call this endpoint once per key.

GET /v1/usage

GET/v1/usage

Return current-period request totals and endpoint-level request counts for the calling key.

Example Request

bash
curl https://api.askverdict.ai/v1/usage \
  -H "X-Api-Key: vrd_your_api_key"

Response

Response Fields

NameTypeRequiredDescription
keyIdstringRequiredInternal ID of the API key used for this request.
periodstring (YYYY-MM-01)RequiredCurrent usage period start date (first day of month).
totalRequestsnumberRequiredTotal requests this key made in the current period.
byEndpointRecord<string, number>RequiredRequest count grouped by endpoint path.
rateLimitnumberRequiredPer-minute limit configured for this API key.

Error Responses

StatusCodeDescription
401API_KEY_REQUIREDRequest is authenticated without API key context
401UNAUTHORIZEDMissing or invalid API key
429RATE_LIMITEDPer-key request limit exceeded

Was this page helpful?