28 · API reference
All JSON, every response shaped { success, data, error }. 170 routes, taken from the route(method, path, …) registrations in worker/src (typed client: frontend/src/api/client.ts, frontend/src/api/chat.ts).
Auth: everything needs the couple’s session (Access JWT or the wp_session cookie) except /api/auth/*, /api/health and the public /api/guest/* routes. The probe baseline (scripts/route-probe-baseline.json) records what every route answers without a session.
The README also mentions
/api/touch/password,/api/guest-settings,/api/tokens/*,/api/decrease/*and/api/guest/window. None of these are registered in the current code.
Outside /api
| Path | What |
|---|---|
POST /mcp/<token> (or /mcp + Bearer) |
MCP connector (notebook 26) |
family.<domain>/ (GET only) |
family payment portal (notebook 09) |
/media/* |
R2 photos, every host |
/manifest.webmanifest, /sw.js, /assets/* |
PWA files and app bundle |
| anything else | app shell, server-rendered guest pages, or the preview-ended page |
Every route, by family
| Family | Routes | Notebook |
|---|---|---|
| auth | GET /api/auth/status · GET /api/auth/check · POST /api/auth/init · POST /api/auth/login · POST /api/auth/logout · POST /api/auth/change-password |
02 |
| health | GET /api/health |
29 |
| setup | GET /api/setup · PUT /api/setup |
03 |
| export | GET /api/export/all · /budget · /contacts · /guests · /run-sheet |
03 |
| dashboard | GET /api/dashboard/stats · /upcoming-tasks · /overdue-payments · /outstanding-decisions |
04 |
| timeline | GET /api/timeline |
05 |
| appointments | GET, POST /api/appointments · PUT, DELETE /api/appointments/:id |
05 |
| tasks | GET, POST /api/tasks · GET, PUT, DELETE /api/tasks/:id · POST /api/tasks/recalculate · POST /api/tasks/reorder |
06 |
| budget | GET, POST /api/budget/categories · PUT, DELETE /api/budget/categories/:id · POST /api/budget/categories/reorder · GET, POST /api/budget/items · PUT, DELETE /api/budget/items/:id · POST /api/budget/items/recalculate |
07 |
| payments | GET, POST /api/payments · PUT, DELETE /api/payments/:id · PATCH /api/payments/:id/paid |
08 |
| family | GET /api/family/preview · GET, POST /api/family/members · DELETE /api/family/members/:id · POST /api/family/sync |
09 |
| households | GET, POST /api/households · PUT, DELETE /api/households/:id · POST /api/households/:id/copy-link · GET, POST /api/households/:id/qr |
10 |
| guests | GET, POST /api/guests · GET, PUT, DELETE /api/guests/:id · POST /api/guests/:id/tags · POST /api/guests/import |
10 |
| guest-tags | GET, POST /api/guest-tags · PUT, DELETE /api/guest-tags/:id · GET /api/guest-tags/assignments |
11 |
| rsvp-questions | GET, POST /api/rsvp-questions · PUT, DELETE /api/rsvp-questions/:id |
11 |
| rsvp | GET /api/rsvp · PATCH /api/rsvp/:id/match · PATCH /api/rsvp/:id/review · POST /api/rsvp/bulk-review · POST /api/rsvp/import · GET /api/rsvp/last-import · GET /api/rsvp/qr-sheet · GET, POST /api/rsvp/reminders · GET /api/rsvp/songs · GET /api/rsvp/dietary-matrix · GET, PUT /api/rsvp/window |
11, 13, 20 |
| guest (public) | POST /api/guest/access · GET /api/guest/home · POST /api/guest/qr-lookup · POST /api/guest/rsvp · GET /api/guest/site · POST /api/guest/site/unlock |
12, 14 |
| guest-site | GET, PUT /api/guest-site · POST /api/guest-site/photo · POST /api/guest-site/publish |
14 |
| suppliers | GET, POST /api/suppliers · PUT, DELETE /api/suppliers/:id |
15 |
| decisions | GET, POST /api/decisions · PUT, DELETE /api/decisions/:id |
16 |
| seating | GET, POST /api/seating/tables · PUT, DELETE /api/seating/tables/:id · GET, POST /api/seating/assignments · PUT, DELETE /api/seating/assignments/:id · POST /api/seating/assignments/bulk · DELETE /api/seating/assignments/table/:tableId · GET, PUT /api/seating/room |
17 |
| logistics | GET, POST /api/logistics · PUT, DELETE /api/logistics/:id |
17 |
| events | GET, POST /api/events · PUT, DELETE /api/events/:id |
18 |
| wedding-day | GET, POST /api/wedding-day/run-sheet · PUT, DELETE …/run-sheet/:id · POST …/run-sheet/reorder · GET, POST /api/wedding-day/contacts · PUT, DELETE …/contacts/:id · GET, POST /api/wedding-day/packing · PUT, DELETE …/packing/:id |
19 |
GET /api/email/config · POST /api/email/test · GET, POST /api/email/digest · GET /api/email/audience · GET, POST /api/email/campaigns · GET /api/email/campaigns/:id · POST /api/email/campaigns/preview · POST /api/email/campaigns/test-draft |
21 | |
| assistant | GET /api/assistant/status · POST /api/assistant/run |
22 |
| chat | GET, PUT /api/chat/me · GET /api/chat/unread · GET, POST /api/chat/conversations · GET, PATCH /api/chat/conversations/:id · POST /api/chat/conversations/:id/messages · POST /api/chat/pending/:code/confirm · POST /api/chat/pending/:code/cancel · POST /api/chat/questions/:messageId/:questionId/skip · POST /api/chat/checkin |
23 |
| push | POST /api/push/subscriptions · POST /api/push/unsubscribe · POST /api/push/test |
24 |
| ai | GET /api/ai/usage |
25 |
| mcp | GET, POST /api/mcp/tokens · DELETE /api/mcp/tokens/:id |
26 |