Appearance
Environments
| Environment | API base URL | Payments | Notes |
|---|---|---|---|
| Production | https://api.plemuz.com/v1 | Hyparrow live | Real money, real users. |
| Local development | http://localhost:4000/v1 | Fake provider or Hyparrow sandbox | Run the stack with Docker Compose. |
Other hosts:
| Host | Purpose |
|---|---|
https://docs.plemuz.com | This documentation |
https://spread.plemuz.com | Share and deep links (Deep links) |
https://plemuz.com | The web app and link fallback |
Discover settings at runtime
GET /v1/client/config needs no token and returns what a client needs at launch: the realtime URL, sign-in client IDs, upload size limits, the lookups version, feature flags and maintenance status. It carries an ETag; send If-None-Match to get a 304 when nothing changed.
bash
curl "https://api.plemuz.com/v1/client/config"When maintenance.isActive is true, show maintenance.message and retry after maintenance.until.
Sandbox payments
Hyparrow has a sandbox (https://sandbox.hyparrow.cloud), selected on the server. In local development a fake payment provider is available: POST /v1/payments/:id/fake-checkout with { outcome } settles a payment without a provider, and /v1/webhooks/payments/fake accepts fake-signed webhooks. Neither exists in production.
Local development
From the repository root, with Node 22 or later and the data stores running (Postgres with pgvector, Valkey and S3-compatible storage, for example through Docker Compose):
bash
cp .env.example .env # then fill in DATABASE_URL and friends
npm install
npm run migrate
npm run dev # API and sockets on http://localhost:4000Health checks: GET /health (process up) and GET /ready (dependencies reachable).
Versioning
The API is versioned in the path (/v1). Within a version, changes are additive: new endpoints, new optional fields, new error codes and new actions kinds. Clients should ignore fields they don't know. Breaking changes ship as a new version, announced in the Changelog.