api-keys
Get Daily Usage
Deprecated — use GET /api/auth/me/usage/daily instead.
The path-parameter form leaks the key into Caddy/proxy access logs. The replacement reads from the X-API-Key header only.
get/api/keys/{api_key}/usage/daily
Request
- Base URL: https://api.halalterminal.com
- URL: https://api.halalterminal.com/api/keys/{api_key}/usage/daily
- Auth: API key in header X-API-Key
Path parameters
api_keystring required
API key whose usage to read.
Query parameters
daysinteger
Trailing days to include.
Response
Per-day request and token counts for the specified period
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.