Read the public board, your own numbers, and push counts from anywhere the agent can’t run.
/api/v1/leaderboardpublicRanked players with tokens and each player's top model. Supports ?period=all|season|week|today and ?limit.
/api/v1/leaderboard/efficiencypublicThe output-per-dollar board, same shape as above.
/api/v1/players/{handle}publicAnything on a public profile: totals, rank, streak, model split.
/api/v1/crews/{slug}publicCrew roster, team total and rank among all crews.
/api/v1/mekeyYour own numbers, including anything you've hidden from the public board.
/api/ingestkeyUpload token counts. Counts, dates and model names only -- every field is checked against a strict allowlist and anything else is rejected.
/api/heartbeatkeyProof the agent was running, which is what makes streaks mean anything. Coalesced server-side, so sending more often than every 15 minutes records nothing extra.
curl -H "Authorization: Bearer tl_..." https://tokenledger.app/api/v1/me{
"handle": "yourhandle",
"rank": 47,
"rank_delta": 12,
"tokens": { "all_time": 1020000000, "today": 18400000 },
"spend_usd": { "all_time": 2448.00, "today": 44.16 },
"by_model": [
{ "model": "claude-sonnet-5", "tokens": 820000000 },
{ "model": "claude-opus-5", "tokens": 200000000 }
],
"season": { "rank": 5 }
}by_modelis keyed on the provider’s own model id, one entry per specific model — not a family and not a display name. Match on the exact string, or on a prefix if you want to group a family together.
401403409422429The same token the app uses: read access to /v1/me, and write access to the two POST endpoints above. Sign in to create one.
Not HMAC-signed — the agent authenticates with its own revocable bearer token, and every field is validated against a strict allowlist server-side before it’s stored.