Repository navigation
API Reference
This page describes the current API, including the V37 legacy-route retirement. For setup, start with Home.
Host-development backend base URL: http://localhost:8080. With ./setup.sh, use http://localhost:4200/api/...; the API port stays inside Docker. The frontend sends /api requests through its proxy. JSON requests use Content-Type: application/json; authenticated requests use Authorization: Bearer <session-token>.
| Identifier | Where it is used |
|---|---|
Board URL slug, such as default
|
/api/board/<slug> and nested widget/editor routes; browser /{username}/<slug> (legacy /b/<slug>) |
| Stable board database ID | Analytics boardId and user mainBoardId
|
| Numeric widget ID | Individual widget updates/deletes and link-click tracking |
| Namespaced click target |
widget:<numeric ID> for new events; card:<old ID> for preserved historical events |
Some controller parameters are named boardId even when they accept a slug. Do not assume that name means the stable ID everywhere. Obtain the stable ID from the returned board's id field.
| Method | Path | Access / purpose |
|---|---|---|
| POST | /api/auth/signup |
Public; create user, starter board, main-board preference, and session |
| POST | /api/auth/signin |
Public; sign in |
| GET | /api/auth/me |
Session; current authenticated user |
| POST | /api/auth/signout |
Invalidate the supplied session |
| GET / PATCH | /api/users/me |
Session; read/update own profile |
| GET / PATCH | /api/users/me/preferences |
Session; read/update preferences, including main board |
| GET / PUT | /api/users/me/preferences/home |
Session; read/save own Home appearance: theme family, color mode, hex background, pattern/intensity, Corner (radiusStep, 1–5) and Gap (spacingStep, 1–3) |
| GET | /api/users/{username}/main-board |
Public; resolve a user's main board |
Signup accepts email, password, and optional displayName / username. The password must be 8–72 characters. Signin uses email and password; local bypass behavior is explained in Dev login and accounts.
“Owner/admin” below means a bearer session belonging to the board owner or an administrator. The server enforces authorization; a hidden frontend control is not the access check.
| Method | Path | Access / purpose |
|---|---|---|
| GET | /api/board?page=0&size=20 |
Public; paginated public boards only |
| POST | /api/board |
Session; create a board owned by the current user |
| GET | /api/board/mine |
Session; list own boards |
| GET | /api/board/{slug} |
Public board, or owner/admin for private board |
| GET | /api/board/by-owner/{username}/{slug} |
Same visibility policy; username must own the board, otherwise 404 |
| GET | /api/board/{slug}/permissions |
Optional session; returns canEdit
|
| GET | /api/board/{slug}/editor |
Owner/admin; board + widgets snapshot |
| PUT | /api/board/{slug}/editor |
Owner/admin; atomic editor save with required version |
| PATCH | /api/board/{slug}/identity |
Owner/admin; board name and URL slug |
| PATCH | /api/board/{slug}/meta |
Owner/admin; display name and headline |
| PATCH | /api/board/{slug}/url |
Owner/admin; URL slug |
| PUT | /api/board/{slug} |
Retired; 410 Gone |
| DELETE | /api/board/{slug} |
Owner/admin; delete; reject last or main boards; success returns 204 |
GET /api/board returns {items, page, size, totalElements, totalPages}. Page is zero-based; size defaults to 20 and must be 1–100. Negative pages and invalid sizes return 400. Ordering is case-insensitive board name, then stable ID. Database filtering excludes private boards before pagination; owners are joined in the same query.
Board metadata includes id, boardName, boardUrl, name, headline, version, and ownerUsername. boardName is the internal name; name is the displayed heading. boardUrl is the slug.
Use GET /api/board/{slug}/editor to load { "board": ..., "widgets": [...] }. Keep board.version, edit the snapshot, then send:
{
"version": 3,
"name": "My page",
"headline": "Links and things I am working on",
"widgets": []
}This example deliberately represents an empty board. widgets is the complete desired collection: omitted existing widgets are deleted. Preserve IDs for existing widgets and omit IDs for new ones. Widget fields include type, title, layout, config, enabled, and order.
Use the version you actually loaded, not the example value. The response contains the saved board and widgets, including the new version. A stale version returns 409 Conflict; reload and reconcile changes before retrying. Do not blindly retry with an updated version, which could overwrite someone else's edits. Validation failures roll back the entire save.
PATCH /identity accepts boardName, boardUrl, and an optional version; include the loaded version for conflict detection. The legacy board PUT is retired; use the versioned widget editor.
Username and slug behavior, including reserved names and rename limitations, is described in Page URLs.
| Method | Path | Access / purpose |
|---|---|---|
| GET | /api/board/{slug}/widgets |
Public board, or owner/admin for private board |
| POST | /api/board/{slug}/widgets |
Owner/admin; create widget |
| PUT | /api/board/{slug}/widgets/{widgetId} |
Owner/admin; update widget |
| DELETE | /api/board/{slug}/widgets/{widgetId} |
Owner/admin; delete widget |
| PUT | /api/board/{slug}/widgets/sync |
Owner/admin; synchronize the complete widget list |
The frontend's board editor uses the atomic editor endpoint to save metadata and widgets together. Individual widget endpoints remain available.
/api/system/routes, PUT /api/board/{slug}, and POST /api/click/{cardId} return 410 Gone with an explanation. Application routes are fixed; the admin route picker and admin-token bypass have been removed. Saved admin widgets display a retirement message. V37 archives cards and route mappings in legacy_cards and legacy_system_settings; they no longer constrain board deletion.
These endpoints use stable board IDs, not URL slugs. Reading insights requires the owner/admin. Recording views or clicks requires read access to the board; anonymous visitors may record only on public boards.
| Method | Path | Purpose |
|---|---|---|
| POST | /api/insights/widgets/{widgetId}/click |
Record a click on an enabled link widget belonging to the supplied boardId
|
| GET | /api/insights/{boardId} |
Read {boardId, totalClicks, byTarget}
|
| POST | /api/insights/view |
Record a view; body includes boardId and optional source
|
| GET | /api/insights/{boardId}/summary |
Read view/click summary |
Click bodies are {"boardId":"stable-id"}. Aggregates use {targetId, clickCount}; targets are widget:42 or historical card:github. Historical events remain in totals. Board-view link buttons send events; feed, picker, and editor previews do not. Tracking failures do not block navigation.
Click suppression is atomic within one backend instance: one event per IP/board/target within two seconds, with expired entries removed on requests and at most 10,000 active entries. A full window rejects new keys with 429 rather than evicting protected keys. Multiple backend instances would require shared enforcement.
Common responses: 400 invalid input, 401 missing/invalid session, 403 insufficient permission, 404 missing resource, 409 conflict, 410 retired endpoint, and 429 click-rate limit.
For exact request/response fields, use the DTOs beside the controllers:
Start here · Troubleshooting · Source repository
Reviewed October 6, 2026 against b8deab3. Feature status distinguishes working behavior from unfinished UI.