Skip to content

Environments ​

EnvironmentAPI base URLPaymentsNotes
Productionhttps://api.plemuz.com/v1Hyparrow liveReal money, real users.
Local developmenthttp://localhost:4000/v1Fake provider or Hyparrow sandboxRun the stack with Docker Compose.

Other hosts:

HostPurpose
https://docs.plemuz.comThis documentation
https://spread.plemuz.comShare and deep links (Deep links)
https://plemuz.comThe 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:4000

Health 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.

Plemuz API v2