Interfaces

REST reference

Every endpoint of the core API. Paths are relative to this site: it forwards /api and /v1 to the core, so a browser session and a script use exactly the same URLs.

Account

Sign-up, sign-in, password and profile. Served by Better Auth.

POST/api/auth/sign-up/emailOpen

Creates an account and sends the confirmation e-mail. The age and the house rules must be confirmed with the version in force; the server stores that version and the time, nothing else.

Body
email, password (at least 10 characters), name, termsAccepted (true) and termsAcceptedVersion (the date shown on /terms, e.g. 2026-10-12)
Answers
the new user and a session
Limit
5 per hour and IP address

POST/api/auth/sign-in/emailOpen

Signs in with an e-mail address.

Body
email, password
Answers
a session; the token is also in the set-auth-token header for callers without cookies
Limit
5 per minute and IP address

POST/api/auth/sign-in/usernameOpen

Signs in with a username instead of an e-mail address.

Body
username, password
Answers
a session
Limit
5 per minute and IP address

POST/v1/login-requestsOpen

Starts "sign in with QR code": a browser asks a phone that is already logged in to sign it in. Shows the QR code and the two-digit number the person types on the phone.

Answers
{ code, number, pollToken, expiresIn, interval }; the request is valid for 2 minutes, the pollToken stays in the browser (Status 201)
Limit
15 per 10 minutes and IP address

GET/v1/login-requests/:code/qr.svgOpen

The QR code of a login request as a picture. It points to the page where the phone confirms.

Path
:code the code from POST /v1/login-requests, e.g. K7QM-3XRA
Answers
an SVG image
Comes back as
image/svg+xml
Limit
120 per minute and IP address

POST/api/auth/qr-login/claimOpen

The browser asks whether a phone confirmed. On the first confirmed answer it receives the session cookie; the request is then used up and the person gets an e-mail naming the screen and the time. With oauth_query (an app's sign-in) the answer continues the app's authorization.

Body
code, pollToken, optional oauth_query
Answers
{ status } with pending, scanned, denied, expired or consumed, or approved with username and the session cookie; 404 for an unknown code or wrong token
Limit
40 per minute and IP address

POST/api/auth/sign-outPerson

Ends the current session.

Answers
{ success: true }

POST/api/auth/update-userPerson

Changes the profile: display name, username and whether Deeds may show the name.

Body
any of name, username, defaultVisibility
Answers
the updated user

POST/api/auth/request-password-resetOpen

Sends a password reset link. Answers the same way whether or not the address exists.

Body
email, redirectTo
Answers
{ status: true }

POST/api/auth/reset-passwordOpen

Sets a new password and ends all other sessions of that account.

Body
token from the e-mail link, newPassword
Answers
{ status: true }

GET/api/auth/verify-emailOpen

Confirms an e-mail address from the link in the message.

Query
?token the token from the e-mail link (required)
Answers
a redirect back to the website

Public

Everything anyone may read: rules, money, catalog, Deeds with receipts, statistics, map.

GET/v1/public/rulesOpen

The earning rules that are active right now.

Answers
{ rules: [...] } with reward, unit, daily cap, the minimum trust level and audience; invited-only rules add invitedCount (never names)

GET/v1/public/changelogOpen

Every rule version and every policy version with its reason, plus every budget deposit. Nothing is ever changed in place.

Answers
{ ruleVersions: [...], policyVersions: [...], budgetDeposits: [...] }

GET/v1/public/budgetOpen

Where the money behind the Drops is: deposited, not yet issued, set aside (earned, not paid in yet), in wallets, reserved, donated, and what went back to the budget because nobody touched it. reach says how many days the budget lasts at the pace of the last 30 days.

Answers
amounts in milli-units as decimal strings, and reach: { windowDays, runwayDays } (runwayDays is null while nothing was issued)

GET/v1/public/policyOpen

The limits around Drops that are not earning rules: how much may be advanced before it is paid in, how many Drops one account may hold, when idle Drops return to the budget. The current version and every earlier one.

Answers
{ current: {...}, history: [...] }, amounts in whole Drops as decimal strings

GET/v1/public/catalogOpen

The redemption catalog by category, with current prices and pool state.

Answers
{ categories: [...], providers: [...] }

GET/v1/public/catalog/:slugOpen

One project with its complete price history.

Path
:slug project slug, e.g. ecologi-tree
Answers
the project, its provider, pool and priceHistory

GET/v1/public/deedsOpen

All settled payouts. Contributors who chose anonymity have name: null.

Answers
{ deeds: [...] } newest first

GET/v1/public/deeds/:idOpen

One Deed with its proof: the snapshot frozen at payout time, the ledger posting and a fresh check of the receipt hash.

Path
:id payout id (UUID)
Answers
the Deed plus receiptCheck: matches, differs or missing

GET/v1/public/payouts/:id/receiptOpen

The receipt file of a payout, so anyone can hash it themselves.

Path
:id payout id (UUID)
Answers
the file as it was uploaded
Comes back as
application/pdf, image/png, image/jpeg or image/webp

GET/v1/public/impactOpen

The headline totals: donated and queued Drops, Deeds, contributors.

Answers
one object with four numbers

GET/v1/public/statsOpen

What the Deeds financed per project, with CO₂e grouped by period, impact type and how well the figure is backed. Living units are counted from the day they were paid for, so the totals grow on their own.

Answers
{ since, deeds, contributors, financed: [...], earned: { totalMilli, ownerMilli }, co2e: { groups, dropsWithoutFactor } }; each group carries accumulated and perYear. A CO₂e figure only counts with a source link; one without is part of dropsWithoutFactor. earned says how many of all earned Drops the owner earned themselves.

GET/v1/public/communityOpen

What the people of one app gave together: per source, how many people earned Drops from it and how many whole Drops they gave with a receipt. A source only appears once at least minPeople people earned from it; no names, no ids.

Answers
{ minPeople, sources: [{ source, people, donatedDrops }] }

GET/v1/public/checksumsOpen

One fingerprint per complete UTC day over every ledger transaction (id, time, kind, entries) and every payout (id, times, amount, receipt SHA-256), chained to the day before: chain = sha256(previous chain + "|" + day + "|" + dayHash). Copy the file somewhere Elpia cannot change, and nobody can rewrite the past unnoticed.

Answers
{ days: [{ day, transactions, entries, payouts, dayHash, chainHash, computedAt }] }, newest first

GET/v1/public/checksums.txtOpen

The same fingerprints as a plain text file, one line per day, oldest first: day chainHash dayHash transactions entries payouts.

Answers
text

GET/v1/public/mapOpen

Activity per country for the world map. Never finer than a country, and a country is only named once at least minPeople people were active there; the rest is counted under others.

Query
?days window of 1 to 90 days, 7 by default
Answers
{ days, minPeople, countries: [{ country, activities, people }], others: { countries, activities } }

GET/v1/public/footprintOpen

The server's CO₂e and water use (from the measured electricity draw of the machine where it was reported, otherwise the hosting provider's estimate), the apps' traffic per day, per deployed version and per kind of page, with the part that went to programs, and what the Deeds dealt with in the same days. They stand side by side; nothing is offset or subtracted.

Query
?period day, week, month (default) or year: a rolling window ending on the last day with figures from the server or the visits
Query
?app only this app's traffic, e.g. elpia; the server figures are then left out, because the provider estimates the whole server
Answers
{ period, app, apps, since, window: { from, to, days, bucket }, server: { co2eGrams, waterLitres, daysWithData }, measurement: { from, to, days, basis, kWh, measuredKWh, estimatedKWh, gapKWh, estimatedDays, averageWatts, peakWatts, minWatts, components: { usageGrams, manufacturingGrams, datacenterGrams }, co2eGrams: { value, min, max }, waterLitres, split: { cpuDramKWh, restKWh }, parameters }, workloads: [{ name, co2eGrams, share, cpuShare, ramShare, daysWithData }], allocation: { idleFraction, minCoverageHours }, visits: { bytes, responses, pageViews, botBytes, botPageViews, daysWithData, since }, versions: [{ app, version, firstDay, lastDay, bytes, responses, pageViews, botBytes, botPageViews }], routes: [{ app, route, pageViews, bytes }], lastMonth: { from, to, days, server: { co2eGrams, daysWithData }, visits: { bytes, daysWithData } }, buckets: [{ start, days, co2eGrams, waterLitres, bytes, pageViews, uptake }], deeds: [{ period, impactType, basis, units, amount, sourceUrls }] }; server and visits are independent: window is null only while neither has figures, server (and a bucket's co2eGrams) while the provider has none for the span, visits while nothing was reported; measurement is the machine's own electricity draw over the span's complete days (split says how much of the measured part the processor and memory used and how much the rest of the machine) (null for a single app and while none was measured; basis says whether days lean on the estimate from before sampling began; parameters lists every assumption with its range and source); uptake is the estimated daily uptake of living units, never subtracted from anything; workloads splits the server's estimate among the virtual machines on it by processor time and reserved memory (empty for a single app and while the usage reports are missing; allocation states the assumed idle share); routes counts people only and names kinds of pages (/catalog/[slug]), never an address; lastMonth is the last complete calendar month over all apps, null for a single app

Your account

Your own data, redemptions, devices and your right to export or delete everything.

GET/v1/mePerson

The signed-in person with their Drops and Sparks balance, and the Drops they earned that are not paid in yet (pendingDrops, "vorgemerkt": not spendable and not redeemable until the money is there).

Answers
{ user, balances, pendingDrops, holding, expiryNotice }, amounts in milli units as decimal strings; holding is how full the account is, expiryNotice is set while idle Drops are about to go back to the budget

GET/v1/me/auto-redeemPerson

Whether the person has "redeem automatically" switched on, for which free donation, whether they have answered the offer, and from how many Drops it acts.

Answers
{ enabled, projectId, answered, atDrops }

PATCH/v1/me/auto-redeemPerson

Switches "redeem automatically" on or off. On needs a free donation (projectId); saying no is stored as an answer too, so the offer does not come back. Only the wallet is ever redeemed, never set-aside Drops.

Body
enabled, projectId (needed to switch on unless one is already chosen)
Answers
the new state

GET/v1/me/countryPerson

The country the person chose for the world map, or null when they chose none.

Answers
{ country } (ISO 3166-1 alpha-2 or null)

POST/v1/me/termsPerson

Accepts the house rules in force, for accounts that were made before they were asked for or when the rules changed. The version must be the current one.

Body
version: the date shown on /terms
Answers
{ current, acceptedVersion, acceptedAt, upToDate }

PATCH/v1/me/countryPerson

Chooses the country for the world map, or takes the person off it with null. Only a country, never a place. Activities that come without a zone of their own count for this country; without one, they are not on the map.

Body
country (two-letter code, or null)
Answers
the new state, { country }

GET/v1/me/activitiesPerson

Your own reported activities and what they earned.

Answers
{ activities: [...] }

POST/v1/me/activitiesPerson

Reports an activity yourself. Trust level self_reported, so most rules will not pay for it.

Body
source, type, quantity, unit, startedAt, endedAt, optional externalId and zone
Answers
the activity and the reward decision (Status 201)

GET/v1/me/statsPerson

Your own share: what your Drops financed and the CO₂e estimate behind it, counted from the day each Deed was paid.

Answers
the same shape as /v1/public/stats, limited to your redemptions

GET/v1/me/invitationsPerson

The rules you are invited to. Rules with audience invited pay only invited people; being invited also lets you confirm your device's link code.

Answers
{ invitations: [{ ruleId, key, title, source, translations, createdAt }] }

GET/v1/me/redemptionsPerson

Your redemptions with their status.

Answers
{ redemptions: [...] }

POST/v1/me/redemptionsPerson

Turns Drops into a queued donation; the Drops are reserved at today's price.

Body
projectId plus quantity (unit projects) or drops (free amount), optional visibility
Answers
the redemption (Status 201)

POST/v1/me/redemptions/:id/cancelPerson

Takes a redemption back while it is still queued and returns the Drops.

Path
:id redemption id (UUID)
Answers
the cancelled redemption

GET/v1/me/clientsPerson

Your connected apps and devices.

Answers
{ clients: [...] } without key hashes

POST/v1/me/clientsPerson

Creates an API key for an app. The key is shown once and only its hash is stored. Only admins may do this for now (403 clients_owner_only otherwise); a key made by anyone else counts as a third-party app.

Body
name, optional kind (first_party for admins), optional signingPublicKey (Ed25519, base64)
Answers
the client and apiKey (Status 201)
Limit
10 per hour and account

DELETE/v1/me/clients/:idPerson

Revokes a device: its key stops working immediately.

Path
:id client id (UUID)
Answers
nothing (Status 204)

POST/v1/me/link/:code/approvePerson

Approves a device. It may then report activities for you, nothing else. Only admins may do this for now (403 clients_owner_only).

Path
:code the code shown on the device
Answers
nothing (Status 204)

POST/v1/me/link/:code/denyPerson

Refuses a link request.

Path
:code the code shown on the device
Answers
nothing (Status 204)

GET/v1/me/login-requests/:codePerson

Shows which browser wants to be signed in with this phone (browser, system, country, time) and marks the request as seen.

Path
:code the code from the QR code, e.g. K7QM-3XRA
Answers
{ browser, os, country, createdAt, expiresAt }; 404 when unknown, used up or expired

POST/v1/me/login-requests/:code/approvePerson

Signs that browser in. The person types the number shown on the browser's screen; a third wrong number closes the request.

Path
:code the code from the QR code, e.g. K7QM-3XRA
Body
number (two digits)
Answers
nothing; 400 wrong_number or too_many_attempts, 404 when unknown or expired (Status 204)
Limit
10 per hour and account

POST/v1/me/login-requests/:code/denyPerson

"That was not me": closes the request at once.

Path
:code the code from the QR code, e.g. K7QM-3XRA
Answers
nothing (Status 204)

GET/v1/me/exportPerson

Your data as one JSON file (GDPR art. 15 and 20). Contains no password hash, token or key hash.

Answers
a download with profile, devices, activities, rewards, redemptions and postings
Comes back as
application/json

POST/v1/me/deletePerson

Deletes your account by anonymising it: the ledger and the Deeds stay, everything that points at you goes. Queued redemptions are donated anonymously, the rest of the Drops goes back to the budget.

Body
password
Answers
nothing (Status 204)
Limit
10 per hour and account

Apps and devices

The machine side: reporting activities with an API key.

POST/v1/client/activitiesApp or device

Reports one activity. externalId makes it idempotent, so a retry never pays twice. With an Ed25519 signature in X-Elpia-Signature the activity counts as verified, otherwise as device. The source sproutly belongs to Sproutly's server: any other key gets 403 source_reserved.

Body
source, type, quantity, unit, startedAt, endedAt, externalId, optional zone, energyWhMeasured, energyWhEstimated
Answers
the activity and the reward decision. A reward's status is credited, advanced (earned before the money was paid in; advancedMilli is that part and it shows up as pendingDrops), budget_capped (the budget and the advance together could not pay all of it), daily_capped, not_invited or trust_too_low (Status 201)
Limit
600 per minute and API key

GET/v1/client/meApp or device

What this key reported and earned (last 24 hours and in total), the latest reward decision, the account's balances and what became of its Drops (waiting in the pool, paid out). Nothing about other apps.

Answers
{ client, username, last24h, total, lastRewardStatus, balances, pendingDrops, redeemed }, amounts in milli units except redeemed, which counts whole Drops
Limit
600 per minute and API key

DELETE/v1/client/meApp or device

Revokes this key, e.g. when someone logs out on the device. It stops working immediately and cannot be restored.

Answers
nothing (Status 204)
Limit
600 per minute and API key

App servers

What the server of one of Elpia's own apps asks about its people, for example the shared list of usernames.

POST/v1/apps/:app/usernames/reserveApp server

Reserves a username for a person who has an account in the app only. A name exists once across Elpia and all its apps: it is refused when an Elpia account, another reservation or a reserved word holds it, or when it was let go of less than 90 days ago.

Path
:app the app, e.g. sproutly
Body
appUserId, username (3 to 30 characters: letters, digits, _ and .; capitalisation does not matter)
Answers
{ username }; 409 username_taken, 400 invalid_username (Status 201)
Limit
120 per minute and IP address

POST/v1/apps/:app/links/from-loginApp server

Connects the app's account to the Elpia account that just logged in through the app: shows the access token of that login and gets the key to report this person's activities. A person has one key per app; a new one ends the old one.

Path
:app the app, e.g. sproutly
Body
accessToken of the login, deviceName (shown next to the app's name under connected apps)
Answers
{ apiKey, clientId, username }; 401 invalid_token, 403 app_not_open (Status 201)
Limit
120 per minute and IP address

POST/v1/apps/:app/usernames/releaseApp server

Lets go of the name a person holds in the app. block keeps it unavailable for 90 days (the person left); without it the name is free at once (the person moved to the name of their Elpia account). Releasing nothing is not an error.

Path
:app the app, e.g. sproutly
Body
appUserId, optional block
Answers
nothing (Status 204)
Limit
120 per minute and IP address

Owner

Rules, budget, catalog, payouts and the integrity audit.

GET/v1/admin/auditOwner

Checks the books: balanced postings, no unexpected negative balances, redemptions matching payouts, receipts matching their hash.

Answers
the report; 409 instead of 200 when there are findings

GET/v1/admin/healthOwner

What the owner should see at a glance: the latest run of the daily audit, the last 30 runs, and when the VM last reported a backup.

Answers
{ latest, history: [...], backup: { at, details } | null }

POST/v1/admin/audit/runOwner

Runs the audit now and keeps the result next to the daily ones.

Answers
the run: { id, ranAt, source, findingCount, counts, findings } (Status 201)

GET/v1/admin/rulesOwner

All rule versions, including the disabled ones.

Answers
{ versions: [...] }

POST/v1/admin/rulesOwner

Creates a rule with its first version.

Body
key and a version object with reward, unit, caps, minimum trust, advanceAllowed (false: only ever paid from the budget, never advanced) and a public reason
Answers
the rule and its version (Status 201)

POST/v1/admin/rules/:id/versionsOwner

Adds a new version of a rule. The old one stays readable; nothing is ever rewritten.

Path
:id rule id (UUID)
Body
the new version with a public reason
Answers
the new version (Status 201)

GET/v1/admin/rules/:id/invitationsOwner

Who is invited to a rule that only pays invited people.

Path
:id rule id (UUID)
Answers
{ invitations: [{ userId, username, email, createdAt }] }

POST/v1/admin/rules/:id/invitationsOwner

Invites a person to a rule. Inviting someone twice changes nothing; an unknown person gives 404 user_not_found.

Path
:id rule id (UUID)
Body
user: username or e-mail address
Answers
the invited person (Status 201)

DELETE/v1/admin/rules/:id/invitations/:userIdOwner

Removes an invitation. New activities stop earning; rewards already booked stay.

Path
:id rule id (UUID)
Path
:userId the invited person's id
Answers
nothing (Status 204)

GET/v1/admin/policyOwner

Every version of the economy policy (advance cap, account cap, idle expiry, reservation time), newest first.

Answers
{ versions: [...] }

POST/v1/admin/policyOwner

Publishes a new policy version. It is active immediately, public with its reason, and never changed afterwards.

Body
advanceCapDrops, advancePerPersonDrops, walletCapDrops, walletWarnDrops, inactivityMonths, noticeDays, reservationDays, autoRedeemAtDrops, mapMinPeople (fewest people for a country to be named on the world map, 5 by default), expiryEnabled (idle Drops go back to the budget; idleness only counts from the day this is first switched on), reason, optional translations
Answers
the new version (Status 201)

POST/v1/admin/policy/stop-advanceOwner

The emergency brake: publishes a new policy version with the advance cap at 0 and every other value as it was, with a fixed public reason. Drops already set aside and all wallets stay as they are. 409 when the advance is already off.

Answers
the new version (Status 201)

GET/v1/admin/expiryOwner

What the idle-Drops rule would do right now: who would be told and whose Drops would go back to the budget. Looking changes nothing.

Answers
{ enabled, since, toNotify: [...], toExpire: [...] }

GET/v1/admin/usersOwner

The accounts: name, e-mail (and whether it is confirmed), registered, last active, chosen country, wallet and set-aside Drops, Deeds and given Drops, devices and status (active, resting after 30 quiet days, frozen). No IP addresses and no session data.

Query
?search part of a name, user name or e-mail address
Query
?filter unconfirmed (e-mail never confirmed), nearLimit (holds as much as the warning threshold) or countryBurst (registered on a day with 5 or more new accounts of the same country)
Query
?sort lastActive (default), registered, drops or deeds
Query
?page page number, 50 accounts per page
Answers
{ users: [...], total, page, pageSize }

GET/v1/admin/users/:idOwner

One account in detail: the list entry plus the latest activities with their rewards, redemptions, devices, invitations and the history of freezes.

Path
:id user id
Answers
{ user, activities, redemptions, devices, invitations, holds, ... }

POST/v1/admin/users/freezeOwner

Freezes the chosen accounts with one reason, each as its own step, so one that cannot be frozen (admin account, already frozen, deleted) is reported and does not stop the others. Never happens by itself: the owner picks the accounts.

Body
userIds (1 to 100 ids) and reason (1 to 500 characters)
Answers
{ frozen, cancelled, skipped: [{ userId, code }] } (Status 201)

POST/v1/admin/users/:id/freezeOwner

Freezes an account: it earns nothing and redeems nothing, waiting redemptions are cancelled, and it is left out of expiry, automatic redemption, covering advanced Drops and the map. The person can still sign in, export their data and delete the account. Admin accounts cannot be frozen.

Path
:id user id
Body
reason (1 to 500 characters)
Answers
{ cancelled }: how many waiting redemptions were cancelled (Status 201)

POST/v1/admin/users/:id/unfreezeOwner

Thaws a frozen account. Its idle time starts again, and advanced Drops the budget could already pay are covered.

Path
:id user id
Body
reason (1 to 500 characters)
Answers
nothing (204) (Status 204)

POST/v1/admin/budget/depositsOwner

Pays money into the budget. Drops can only be issued from it.

Body
amountCents, optional memo
Answers
the ledger transaction (Status 201)

GET/v1/admin/catalogOwner

The catalog including inactive providers and projects.

Answers
like the public catalog, but complete

POST/v1/admin/categoriesOwner

Creates a category.

Body
slug, name, optional description, translations, sortOrder
Answers
the category (Status 201)

PATCH/v1/admin/categories/:idOwner

Changes a category. Only the fields that are sent change.

Path
:id category id (UUID)
Body
any subset of the fields
Answers
the category

POST/v1/admin/providersOwner

Creates a provider with its minimum payment and fee note.

Body
slug, name, website, optional minPayout, feeNote, translations
Answers
the provider (Status 201)

PATCH/v1/admin/providers/:idOwner

Changes a provider.

Path
:id provider id (UUID)
Body
any subset of the fields
Answers
the provider

POST/v1/admin/projectsOwner

Creates a project. impactType is required, so no card is ever ambiguous about what the money does.

Body
slug, providerId, categoryId, title, kind, impactType, optional unitName, co2e (needs a sourceUrl), translations
Answers
the project (Status 201)

PATCH/v1/admin/projects/:idOwner

Changes a project. kind is fixed because redemptions depend on it.

Path
:id project id (UUID)
Body
any subset of the fields; co2e: null removes the CO₂e figure
Answers
the project

POST/v1/admin/projects/:id/pricesOwner

Adds a price. Prices are append-only and queued redemptions keep the price they were made at.

Path
:id project id (UUID)
Body
price, currency, fxToEur, public reason
Answers
the new price version (Status 201)

GET/v1/admin/queueOwner

The pools waiting for a payout and whether they have reached the provider's minimum.

Answers
{ pools: [...] }

GET/v1/admin/budget/forecastOwner

What paying out today would cost, how much the owner would have to add, and how long the budget lasts at the pace of the last 30 days.

Answers
balances, pools and the runway

POST/v1/admin/payoutsOwner

Records a real payment with its receipt and turns the settled redemptions into a Deed. The receipt is required: without one nothing is booked. Payouts cannot be changed afterwards.

Body
projectId, redemptionIds, amountPaid, currency, paidAt, optional comment, and the receipt file
Sent as
multipart/form-data, at most 12 MB
Answers
the payout with its snapshot and receipt hash (Status 201)

POST/v1/admin/payouts/:id/reviewsOwner

Records what the provider delivered after the payment. Append-only: a correction never hides the earlier entry.

Path
:id payout id (UUID)
Body
status (confirmed, needs_clarification, corrected), note, evidenceUrl (required for confirmed)
Answers
the review entry (Status 201)

Operations

What a container orchestrator asks before it sends traffic.

GET/healthOpen

Checks the process and its database. Answers 503 when the database is unreachable, so a broken instance is taken out of rotation.

Answers
{ status, database }

POST/v1/ops/trafficInternal

An app reports how many compressed bytes, responses and page views it sent per UTC day since its last report, how much of that went to programs, and optionally the same per kind of page, with its deployed version; the API adds them up. Only totals: no address, no cookie and no single page, so no visit can be told apart.

Body
{ app?, version?, days: [{ day, bytes, responses, pageViews?, botBytes?, botPageViews? }], routes?: [{ day, route, pageViews, bytes }] }; a route is a pattern such as /catalog/[slug] or other; app defaults to elpia, version to unknown; days older than 30 days or in the future are skipped
Answers
{ stored }, the number of days added

POST/v1/ops/backupInternal

The backup timer on the VM reports that a backup was written and checked, so the owner sees its age and is told when it is too old.

Body
{ dumpBytes, receiptsBytes }
Answers
{ stored: true }

POST/v1/ops/usageInternal

The machine Elpia runs on reports how much processor time and memory it and each virtual machine on it used in the last few minutes; the API adds them up per UTC day to split the hosting provider's estimate among the virtual machines. Needs its own secret (HOSTING_USAGE_TOKEN, not the website's INTERNAL_TOKEN).

Body
{ intervalSeconds, host: { cpuSeconds, memTotalMb }, workloads: [{ name, cpuSeconds, memMb, running }] }; intervalSeconds is at most 3600, name is lowercase letters, digits, _ or - and never host
Answers
{ stored }

POST/v1/ops/energyInternal

The sampler on the machine Elpia runs on reports how much electricity the whole server drew, hour by hour: the processor's exact energy counters plus the controller's reading of everything else. Measured hours add up across reports; estimated hours (from before sampling began) replace. Uses the same secret as the usage route (HOSTING_USAGE_TOKEN).

Body
{ buckets: [{ hour, basis: measured | estimated, seconds, energyWh, cpuDramWh?, bmcWh?, bmcSeconds?, cpuBusySeconds?, restFilledSeconds?, samples?, peakW?, minW? }] }; hour is the ISO start of a UTC hour no older than 30 days and not in the future, at most 48 buckets per call, energyWh must fit the seconds
Answers
{ stored }