Documentation
API Usage Notes
PoolNode Open API: API Usage Notes.
API Usage Notes
Checked against PoolNode routes, controllers, DTOs and authentication middleware in Rust revision 655097d2a5 (2026-11-02). Upstream response fields not defined locally are not guaranteed by historical examples; only confirmed request contracts are listed here.
Base URL and authorization
Include scheme, port and secure route in the node base URL: https://pool.example/secure/ + api/user/info. Do not duplicate /api. Disabling the pool website can also block API requests with HTTP 403 PoolNode Forbidden.
Use Content-Type: application/json for JSON POST requests. Authenticated endpoints require Authorization: Bearer TOKEN. Login returns a JWT string in data, valid for 72 hours; log in again after expiry. Captcha, login email, login, public network data, node addresses, fees, configuration, quotes and version endpoints do not require user JWTs; see the inventory. Observers use RLOBTOKEN: Bearer TOKEN.
Responses and errors
Most endpoints return {"status":0,"error":null,"data":...}. Legacy RESULT examples usually show only data. Upstream payloads can be objects, arrays, strings or null. Preserve precision for numeric strings.
| status | Meaning |
|---|---|
| 0 | Success |
| 1 | User authentication failed |
| 2 | Validation or some login/email failures |
| 3 | General business/upstream error |
| 4 | Missing node PROJECT_CODE |
| 5 | User-operation email captcha verification failed |
Business errors often use HTTP 200: inspect status and error. JSON/query parsing errors and middleware rejection can use non-200 HTTP responses. Successful captcha, /api/version and /api/runtime/debug responses do not use this envelope.
Parameters
Coin identifiers depend on node/upstream configuration. Most Rust queries default to BTC and forward the supplied value unchanged; there is no universal prefix requirement. Historical channels may use PI-BTC, VA-LTC or VA-DOGE. Use identifiers returned by your node without adding/removing prefixes.
Supply sid (u64) for subaccount queries; address endpoints use id. Chart mode defaults to hourly. Bill pagination defaults to page=1, size=30; optional worker pagination is forwarded without local defaults. coin/hashrate accepts optional sid; the subaccount list accepts optional coin. Send amounts and payout thresholds as strings.
Bills accept optional start, end (DateTime strings) and export (u8), forwarded as start_time, end_time, export. The upstream defines date filtering and export format. There is no local token-refresh endpoint or withdrawal idempotency key.
