Regeln, Budget, Katalog, Auszahlungen und die Integritätsprüfung.
GET/v1/admin/auditInhaber
Checks the books: balanced postings, no unexpected negative balances, redemptions matching payouts, receipts matching their hash.
- Antwortet
- the report; 409 instead of 200 when there are findings
GET/v1/admin/healthInhaber
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.
- Antwortet
{ latest, history: [...], backup: { at, details } | null }
POST/v1/admin/audit/runInhaber
Runs the audit now and keeps the result next to the daily ones.
- Antwortet
- the run:
{ id, ranAt, source, findingCount, counts, findings } (Status 201)
GET/v1/admin/rulesInhaber
All rule versions, including the disabled ones.
- Antwortet
{ versions: [...] }
POST/v1/admin/rulesInhaber
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- Antwortet
- the rule and its version (Status 201)
POST/v1/admin/rules/:id/versionsInhaber
Adds a new version of a rule. The old one stays readable; nothing is ever rewritten.
- Pfad
:id rule id (UUID)- Body
- the new version with a public
reason - Antwortet
- the new version (Status 201)
GET/v1/admin/rules/:id/invitationsInhaber
Who is invited to a rule that only pays invited people.
- Pfad
:id rule id (UUID)- Antwortet
{ invitations: [{ userId, username, email, createdAt }] }
POST/v1/admin/rules/:id/invitationsInhaber
Invites a person to a rule. Inviting someone twice changes nothing; an unknown person gives 404 user_not_found.
- Pfad
:id rule id (UUID)- Body
user: username or e-mail address- Antwortet
- the invited person (Status 201)
DELETE/v1/admin/rules/:id/invitations/:userIdInhaber
Removes an invitation. New activities stop earning; rewards already booked stay.
- Pfad
:id rule id (UUID)- Pfad
:userId the invited person's id- Antwortet
- nothing (Status 204)
GET/v1/admin/policyInhaber
Every version of the economy policy (advance cap, account cap, idle expiry, reservation time), newest first.
- Antwortet
{ versions: [...] }
POST/v1/admin/policyInhaber
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- Antwortet
- the new version (Status 201)
POST/v1/admin/policy/stop-advanceInhaber
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.
- Antwortet
- the new version (Status 201)
GET/v1/admin/expiryInhaber
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.
- Antwortet
{ enabled, since, toNotify: [...], toExpire: [...] }
GET/v1/admin/usersInhaber
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- Antwortet
{ users: [...], total, page, pageSize }
GET/v1/admin/users/:idInhaber
One account in detail: the list entry plus the latest activities with their rewards, redemptions, devices, invitations and the history of freezes.
- Pfad
:id user id- Antwortet
{ user, activities, redemptions, devices, invitations, holds, ... }
POST/v1/admin/users/freezeInhaber
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)- Antwortet
{ frozen, cancelled, skipped: [{ userId, code }] } (Status 201)
POST/v1/admin/users/:id/freezeInhaber
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.
- Pfad
:id user id- Body
reason (1 to 500 characters)- Antwortet
{ cancelled }: how many waiting redemptions were cancelled (Status 201)
POST/v1/admin/users/:id/unfreezeInhaber
Thaws a frozen account. Its idle time starts again, and advanced Drops the budget could already pay are covered.
- Pfad
:id user id- Body
reason (1 to 500 characters)- Antwortet
- nothing (204) (Status 204)
POST/v1/admin/budget/depositsInhaber
Pays money into the budget. Drops can only be issued from it.
- Body
amountCents, optional memo- Antwortet
- the ledger transaction (Status 201)
GET/v1/admin/catalogInhaber
The catalog including inactive providers and projects.
- Antwortet
- like the public catalog, but complete
POST/v1/admin/categoriesInhaber
Creates a category.
- Body
slug, name, optional description, translations, sortOrder- Antwortet
- the category (Status 201)
PATCH/v1/admin/categories/:idInhaber
Changes a category. Only the fields that are sent change.
- Pfad
:id category id (UUID)- Body
- any subset of the fields
- Antwortet
- the category
POST/v1/admin/providersInhaber
Creates a provider with its minimum payment and fee note.
- Body
slug, name, website, optional minPayout, feeNote, translations- Antwortet
- the provider (Status 201)
PATCH/v1/admin/providers/:idInhaber
Changes a provider.
- Pfad
:id provider id (UUID)- Body
- any subset of the fields
- Antwortet
- the provider
POST/v1/admin/projectsInhaber
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- Antwortet
- the project (Status 201)
PATCH/v1/admin/projects/:idInhaber
Changes a project. kind is fixed because redemptions depend on it.
- Pfad
:id project id (UUID)- Body
- any subset of the fields;
co2e: null removes the CO₂e figure - Antwortet
- the project
POST/v1/admin/projects/:id/pricesInhaber
Adds a price. Prices are append-only and queued redemptions keep the price they were made at.
- Pfad
:id project id (UUID)- Body
price, currency, fxToEur, public reason- Antwortet
- the new price version (Status 201)
GET/v1/admin/queueInhaber
The pools waiting for a payout and whether they have reached the provider's minimum.
- Antwortet
{ pools: [...] }
GET/v1/admin/budget/forecastInhaber
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.
- Antwortet
- balances, pools and the runway
POST/v1/admin/payoutsInhaber
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- Gesendet als
- multipart/form-data, at most 12 MB
- Antwortet
- the payout with its snapshot and receipt hash (Status 201)
POST/v1/admin/payouts/:id/reviewsInhaber
Records what the provider delivered after the payment. Append-only: a correction never hides the earlier entry.
- Pfad
:id payout id (UUID)- Body
status (confirmed, needs_clarification, corrected), note, evidenceUrl (required for confirmed)- Antwortet
- the review entry (Status 201)