Skip to main content
Use GET /v1/usage/me to query usage attributed to the user that owns the API key. The endpoint returns daily buckets, per-model token totals, request counts, and estimated cost.

Run

Parameters

  • period (optional): 1d, 7d, or 30d
  • start_at and end_at (optional): explicit ISO timestamps instead of period
  • endpoint (optional): restrict usage to one endpoint, such as pass.wafer.ai
  • pass_account_id (optional): restrict usage to one pass account UUID
Use either period or start_at plus end_at. If no endpoint is provided, usage is aggregated across endpoints visible to the key’s owning user.

Response Shape

Key Fields

  • days: token usage buckets over the requested period
  • models: per-model token totals, cache-read tokens, request counts, and estimated cost
  • total_input_tokens, total_output_tokens, total_cache_read_tokens: token totals across all returned models
  • total_requests: total requests attributed to the user in the window
  • total_estimated_cost_cents: estimated cost in cents for the returned usage

Errors

  • 401: missing or invalid API key
  • 400: invalid pass_account_id or invalid time window
  • 429: rate limit exceeded