---
title: "Me Usage Daily"
method: GET
path: "/api/auth/me/usage/daily"
tags: ["auth"]
---

# Me Usage Daily

`GET /api/auth/me/usage/daily`

## Request

- Base URL: `https://api.halalterminal.com`
- URL: `https://api.halalterminal.com/api/auth/me/usage/daily`
- Auth: API key in header `X-API-Key`

Return per-day usage for the *calling* API key (header-only).

Path-clean replacement for `/api/keys/{api_key}/usage/daily`. The key
is read from the `X-API-Key` header — never the URL — so it does not
end up in proxy access logs.

**curl example**:
```bash
curl -H "X-API-Key: ht_abc123"       "https://api.halalterminal.com/api/auth/me/usage/daily?days=7"
```

## Query parameters

- `days` integer: Trailing days to include.

## Response `200`

Per-day request and token counts for the calling key

- DailyUsageResponse: Per-day usage breakdown for an API key.
  - `api_key` string, required: The API key these stats belong to
  - `days` integer, required: Number of days included in the breakdown
  - `daily` DailyUsageEntry[], required: Per-day request and token counts
    - `date` string, required: Calendar date in YYYY-MM-DD format
    - `count` integer, required: Number of API requests made on this date
    - `tokens` integer: Total tokens charged on this date

## Other responses

- `401`: Missing or invalid API key
- `422`: Validation Error

---

[API](https://skmtc.dev/halalterminal/apis/halal-terminal-api.md) · [All operations](https://skmtc.dev/halalterminal/apis/halal-terminal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/halalterminal/apis/halal-terminal-api/revisions/78768b250943?raw)
