API reference
A read-only JSON API for your own account. Generate a key in your panel under API key (requires your authenticator code). The full key is shown once — store it safely. Regenerating replaces the old key; revoking disables it.
Authentication
Send the key in either header:
curl -H "Authorization: Bearer YOUR_KEY" https://pool.hashrate.online/api/v1/accountcurl -H "X-API-Key: YOUR_KEY" https://pool.hashrate.online/api/v1/workers
Limits: 60 requests per minute per key (HTTP 429 with Retry-After when exceeded). Invalid keys return 401. All amounts are integer satoshis; times are Unix seconds (UTC).
Endpoints
| Method & path | Returns |
|---|---|
| GET /api/v1/account | wallet, hashrate_10m (H/s), workers_online, workers_total, balance_sats, paid_sats |
| GET /api/v1/workers | per worker: name, online, hashrate_10m, accepted_24h, rejected_24h, last_share |
| GET /api/v1/hashrate?range=24h|7d|30d | ts[], total[] and per-worker series, stats (current, average, peak) |
| GET /api/v1/earnings?limit=30 | daily: day, credited_sats, referral_sats (max 365) |
| GET /api/v1/payouts | id, created, sats, type, status, txid (last 100) |
Example response
{
"wallet": "bc1q\u2026",
"hashrate_10m": 104857600000000,
"workers_online": 2,
"workers_total": 3,
"balance_sats": 11073,
"paid_sats": 0,
"unit": "sats",
"time": 1792598400
}
Security
- The key is read-only: it can't withdraw, change settings or manage 2FA.
- We store only a fingerprint of the key, never the key itself.
- If you use the key as a mining username, anyone with access to the miner can read your stats — revoke and regenerate if a miner is compromised.