DEVELOPER DOCUMENTATION

HuurrexPool API

The public API is available under https://huurrexpool.com/api.

Protected endpoints require:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST/api/auth/registerPublic

Create a new HuurrexPool account.

Request body

{
  "email": "miner@example.com",
  "username": "minername",
  "password": "SecurePass123"
}
POST/api/auth/loginPublic

Authenticate and receive a JWT access token.

Request body

{
  "email": "miner@example.com",
  "password": "SecurePass123"
}
GET/api/pool/stats?coin=DGB&algorithm=SHA256Public

Return current hashrate and share statistics for a specific coin, optionally filtered by mining algorithm.

GET/api/users/meBearer token

Return the profile of the authenticated user.

GET/api/workersBearer token

Return all workers belonging to the authenticated user.

POST/api/workersBearer token

Create a new mining worker.

Request body

{
  "name": "worker01"
}
POST/api/workers/:id/heartbeatBearer token

Update worker status and mining counters.

Request body

{
  "currentHashrate": "1000000000",
  "acceptedShares": 25,
  "rejectedShares": 1
}