auth
Me Usage Daily
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:
curl -H "X-API-Key: ht_abc123" "https://api.halalterminal.com/api/auth/me/usage/daily?days=7"
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
Query parameters
daysinteger
Trailing days to include.
Response
Per-day request and token counts for the calling key
Example response
{
"api_key": "ht_abc123def456",
"daily": [
{
"count": 12,
"date": "2025-06-15",
"tokens": 48
},
{
"count": 8,
"date": "2025-06-14",
"tokens": 32
}
],
"days": 30
}Changes
No recorded changes to this operation across all 1 revision of this API.