---
title: "Aggregate usage stats for the authenticated user"
method: GET
path: "/api/v1/usage/me"
tags: ["Usage"]
---

# Aggregate usage stats for the authenticated user

`GET /api/v1/usage/me`

## Request

- Base URL: `https://api.hub-equity.com`
- URL: `https://api.hub-equity.com/api/v1/usage/me`
- Auth: HTTP bearer

Read api_request_log rows for this user across `period` (day/week/month/all). Returns counts grouped by status_code, path, day, and api_key_id. JWT only — API keys cannot self-introspect their parent user's usage.

## Query parameters

- `period` 'day' | 'week' | 'month' | 'all': Time window
- `limit` integer: Max rows to aggregate

## Response `200`

Usage stats

- ApiResponseUsageMeResponse
  - `success` boolean, required
  - `data` UsageMeResponse
    - `period` 'day' | 'week' | 'month' | 'all', required
    - `since` string, date-time, nullable, required: UTC cutoff. None when period='all'.
    - `total_calls` integer, required
    - `by_status` UsageStatusBucket[], required
      - `status_code` integer, required
      - `count` integer, required
    - `by_path` UsagePathBucket[], required: Top 20 paths by count
      - `path` string, required
      - `count` integer, required
    - `by_day` UsageDayBucket[], required: Daily counts within the period
      - `date` string, required: YYYY-MM-DD UTC
      - `count` integer, required
    - `by_key` UsageKeyBucket[], required: Breakdown by api_key_id (NULL = JWT call)
      - `api_key_id` string, nullable, required
      - `count` integer, required
  - `error` ApiError: API error details.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` ApiMeta: API response metadata. Pagination fields (``page`` / ``per_page`` / ``total``) are populated on collection endpoints only. They are omitted from the payload on single-resource endpoints.
    - `timestamp` string, date-time
    - `request_id` string, nullable
    - `page` integer, nullable
    - `per_page` integer, nullable
    - `total` integer, nullable
  - `links` ApiLinks: HATEOAS-style pagination cursors. Host-relative path + query links for a collection page. Present on collection endpoints, ``null`` fields where a page doesn't exist (``next`` on the last page, ``prev`` on the first). The whole ``links`` object is omitted from single-resource responses (see ``ApiResponse`` serializer).
    - `self` string, nullable
    - `first` string, nullable
    - `prev` string, nullable
    - `next` string, nullable
    - `last` string, nullable

## Other responses

- `401`: Unauthenticated
- `422`: Validation Error

---

[API](https://skmtc.dev/hub-equity/apis/hub-equity-api.md) · [All operations](https://skmtc.dev/hub-equity/apis/hub-equity-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hub-equity/apis/hub-equity-api/revisions/e8eeda5dc13e?raw)
