Docs/API reference/GET /api/v1/usage
GET/api/v1/usage
Daily usage and a per-endpoint breakdown for the authenticated account.
Request
Optional days query param (1–90, default 30). Aggregates are computed server-side per UTC day.
HTTP
GET https://api.varmir.com/api/v1/usage?days=30
Authorization: Bearer <YOUR_API_KEY>Response
{
"window_days": 30,
"total_minutes": 5247,
"total_credits": 5247,
"by_day": [
{ "date": "2026-06-11", "minutes": 247 },
{ "date": "2026-06-12", "minutes": 182 }
],
"by_endpoint": [
{ "endpoint": "/api/v1/transcribe", "minutes": 4890 }
]
}Code examples
curl "https://api.varmir.com/api/v1/usage?days=30" \
-H "Authorization: Bearer mstk_your_key"