API Reference

Euro Economy API

The backend that powers this site. Every endpoint except /health requires an API key. Amounts are always in cents (€1.00 = 100).

Base URL
http://localhost:3000
Auth header
X-API-Key: your-api-key-here

Health

Check that the backend and database are running.

GET /health

Server + database health check.

Authentication

Link a Minecraft account to the site with a temporary 6-digit code and a JWT.

POST /api/auth/generate-code

Generate a 6-digit code (valid 5 minutes).

POST /api/auth/verify-code

Verify a code from the mod when a player runs /auth <code>.

POST /api/auth/check-code

Poll whether a code has been verified; returns a JWT on success.

GET /api/auth/verify-token

Validate a JWT for protected routes.

Economy

Read and modify player balances. Amounts are in cents (€1.00 = 100).

GET /api/economy/balance/:uuid

Get a player’s balance by UUID (creates them at 0 if new).

POST /api/economy/balance/set

Set an exact balance (admin).

POST /api/economy/balance/add

Add money to a balance.

POST /api/economy/balance/remove

Remove money from a balance.

Transactions

Atomic transfers and transaction history.

POST /api/transaction/pay

Atomic transfer between players and/or organizations.

GET /api/transaction/recent

Recent transactions (limit, offset).

GET /api/transaction/volume

Total transfer volume over a time window (hours).

Market analytics

Aggregate money-supply and holder statistics, recalculated every 60 seconds.

GET /api/market/total-supply

Sum of all player balances.

GET /api/market/market-cap

Market capitalization (alias for total supply).

GET /api/market/top-holders

Richest players (whale tracking).

GET /api/market/stats

Comprehensive market statistics.

GET /api/market/health

Backend + database health.

Marketplace listings

The player-driven marketplace.

POST /api/market/listings

Create a new item listing.

GET /api/market/listings

List active listings (paginated).

PUT /api/market/listings/:id

Update a listing’s price or expiry.

DELETE /api/market/listings/:id

Remove a listing; the item returns to the seller.

Items

Remotely give items to players; queued until they are online.

POST /api/items/give

Give an item (with optional enchantments).

GET /api/items/pending/:username

Pending items for a player (called by the mod).

POST /api/items/mark-delivered

Mark an item as delivered.

Notifications

Queue in-game messages shown when a player joins or checks notifications.

POST /api/notifications/create

Create a notification for a player.

GET /api/notifications/pending/:username

Pending notifications (called by the mod).

POST /api/notifications/mark-delivered

Mark a notification as delivered.

POST /api/notifications/announce

Send a marketplace purchase announcement.

Organizations

Business and District accounts: separate entities with balances, owners and members.

POST /api/business/create

Create a Business account.

GET /api/business/list

List Business accounts.

POST /api/district/create

Create a District account.

GET /api/organizations/user/:uuid

Organizations a user belongs to.

PUT /api/:id

Update an organization’s name or logo.

DELETE /api/:id

Delete an organization.

Admin

Maintenance operations.

POST /api/admin/flush-cache

Clear all in-memory caches.

POST /api/admin/recalculate-supply

Force a market-stats recalculation.

This is a summary. See the full API documentation for request/response bodies, examples and error codes.

DyplayMC

A player-driven Minecraft economy with balances, transfers, market analytics and a live marketplace, powered by the Euro Economy API.

Euro Economy

© 2026 DyplayMC. Not affiliated with Mojang or Microsoft.

Source