Per-machine earnings day-series (host owner)
The account-wide /hosts/earnings day-series narrowed to one machine and attributed through jobs.machine_id, in the identical shape so one chart renders both. Ledger-derived only: every bar links back to journal_lines on host_payable:<id> for jobs that ran on this machine, and the series reconciles exactly to those rows. paid_micro is zero throughout, because payout settlements carry no job_id and belong to the account rather than to any one machine — attributing them would double-count a payout across the fleet. A non-owner receives 404, never 403, so machine existence never leaks. A malformed window is refused rather than silently defaulted.
Request
- Base URL: https://amplerun-api.spiry.org
- URL: https://amplerun-api.spiry.org/api/v1/hosts/machines/{id}/earnings
- Auth: HTTP bearer
Path parameters
Query parameters
Trailing window as <n>d (default 30d, 1..365).
Response
Daily earnings bars for this machine, oldest first.
Example response
{
"from": "2026-09-25T12:00:00Z",
"to": "2026-09-25T12:00:00Z",
"days": [
{
"paid_micro": "1"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.