Reference

Data API

Everything the dashboard shows is yours to pull programmatically — usage, request logs, team leaderboard, billing history and savings. Same API keys, same base URL. Every dashboard page also has an Export button for one-off JSON/CSV downloads.

EndpointReturns
GET/v1/data/usageDaily usage aggregates: spend, requests, tokens — per model and key.
GET/v1/data/logsPer-request log rows: timestamps, model, tokens, latency, cost, status.
GET/v1/data/leaderboardYour team leaderboard: XP, weekly XP, streaks and 30-day spend per member.
GET/v1/data/transactionsBilling history: top-ups, bonuses, promo credits and usage debits.
GET/v1/data/savingsWhat you saved vs list price and vs always-flagship routing.
GET/v1/modelsLive model catalog with per-token pricing, context windows and status.

Example

team leaderboard, this week
curl "https://api.rooter.dev/v1/data/leaderboard?period=week" \
  -H "Authorization: Bearer sk-rooter-..."

{
  "period": "week",
  "members": [
    { "name": "Ada N.", "role": "member", "xp": 1210, "streak_days": 6, "spend_usd": 48.20 },
    { "name": "You",    "role": "owner",  "xp": 985,  "streak_days": 9, "spend_usd": 36.45 }
  ]
}

Notes: responses are JSON; add Accept: text/csv to any /v1/data/*endpoint for CSV. Reads are free and don't count against your credit. Keys need no extra scope — any active key can read its own account's data.