Zügle System API
Health/build info and the rotating background photo.
Health/build info and the rotating background photo.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/zuegle-com:zuegle-com-system-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Zügle System API
version: 1.0.0
description: 'Zügle is a Swiss "does it pay off to move?" app. Paste a Flatfox/Homegate listing
link (or enter costs manually) to compare a candidate apartment against a current
home: monthly living costs, the Swiss income-tax delta between municipalities
(federal/cantonal/Gemeinde), commute time and cost, and a quality-of-living score.
The app has **guest mode**: several routes are reachable with no session cookie at
all. A guest supplies their own income/relationship/confession/children/current-home
figures on the request itself (query params or, for ingest, a `profile` body object)
and gets a computed result back — nothing about a guest request is ever persisted
server-side. The same routes behave differently for an authenticated household
member: caller-supplied profile values are ignored and the stored profile
(`p1`/`p2`) is used instead. Guest traffic is additionally throttled by a set of
in-memory, per-IP rate-limit buckets described on each public operation; an
authenticated caller using their own app is never subject to those buckets.'
contact:
name: Zügle
servers:
- url: http://localhost:8090
description: Local dev (npm run dev) or local prod (npm run prod) — both serve on :8090
- url: https://zuegle.com
description: 'Public production deployment. The VPS holds no open ports: a Cloudflare Tunnel (cloudflared) fronts localhost:8090, so TLS terminates at Cloudflare and the app runs with TRUST_PROXY_HOPS=1 / FORCE_HTTPS=1. Auto-deployed from the main branch.'
- url: https://zugle-vps.barbel-char.ts.net
description: The same VPS over the Tailscale tailnet — admin/debug access that does not depend on Cloudflare. Tailscale Funnel is OFF here; a tailnet member reaches this, the public internet does not.
security:
- cookieAuth: []
tags:
- name: System
description: Health/build info and the rotating background photo.
paths:
/api/health:
get:
operationId: getHealth
summary: Health and build info
description: Public, unauthenticated, and not subject to any rate-limit bucket. Reports the PIN length hints the login pad needs and the build commit/timestamp read once at module load (so a changed value proves the process actually restarted onto a new build).
tags:
- System
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/HealthInfo'
example:
ok: true
app: zugle
signupOpen: true
minPasswordLength: 10
commit: 3ca5451
builtAt: '2026-08-01T09:12:00.000Z'
/api/background:
get:
operationId: getBackground
summary: Today's rotating background photo
description: 'Public. Deterministic daily pick from the pre-warmed pool in `data/backgrounds.json` (see `scripts/refresh-backgrounds.mjs`) — not a live Unsplash fetch per page load. `photo` is null when no `UNSPLASH_ACCESS_KEY` is configured or the pool is empty. Rate limit (guest only): general bucket, 60 requests / 5 min per IP.'
tags:
- System
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/BackgroundResponse'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
BackgroundResponse:
type: object
required:
- date
- photo
properties:
date:
type: string
format: date
description: UTC day key (YYYY-MM-DD) the rotation used.
photo:
oneOf:
- $ref: '#/components/schemas/BackgroundPhoto'
- type: 'null'
HealthInfo:
type: object
required:
- ok
- app
- signupOpen
- minPasswordLength
- commit
- builtAt
properties:
ok:
type: boolean
app:
type: string
enum:
- zugle
signupOpen:
type: boolean
description: False when ALLOW_SIGNUP=0 makes the instance invite-only.
minPasswordLength:
type: integer
description: So the sign-up form can state the rule before submitting.
commit:
type:
- string
- 'null'
description: Short build SHA from dist/build-info.json, read once at process start. Null in dev (no dist/).
builtAt:
type:
- string
- 'null'
format: date-time
Error:
type: object
description: 'The base shape of every error response in this API: `{ error: <message>, ...extra }`, produced by throwing `ApiError(status, message, extra)` in server/app.js (caught centrally by handleRouteError) or, for unmatched routes, written directly by the dispatcher.'
required:
- error
properties:
error:
type: string
additionalProperties: true
BackgroundPhoto:
type: object
properties:
url:
type:
- string
- 'null'
format: uri
color:
type:
- string
- 'null'
description: Dominant color hex
for a loading placeholder.: null
alt:
type: string
author:
type:
- string
- 'null'
authorUrl:
type:
- string
- 'null'
format: uri
description: UTM-tagged Unsplash profile link.
photoUrl:
type:
- string
- 'null'
format: uri
description: UTM-tagged Unsplash photo link.
RateLimitError:
description: A 429 from any of the guest-mode rate-limit buckets, or the login brute-force limiter.
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- retryAfterSec
properties:
retryAfterSec:
type: integer
description: Also sent as the Retry-After response header.
responses:
RateLimited:
description: Guest-mode rate limit exceeded for this route's bucket (or the shared general bucket).
headers:
Retry-After:
schema:
type: integer
description: Seconds until the oldest request in the window ages out.
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitError'
example:
error: Too many requests
retryAfterSec: 137
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: zugle_session
description: 64-hex-character session token set as an HttpOnly, SameSite=Strict cookie by POST /api/auth/login. Routes NOT in the guest-mode public set return 401 with code SESSION_EXPIRED when it is missing or invalid.