Aggregator HTTP routes and API
The census counts 50 primary pages and views: 29 aggregator routes in The aggregator website, page by page and 21 console views in The console, view by view. This chapter covers the routes the census enumerates separately from that count: the aggregator’s JSON twins, fragment and streaming routes, POST and write endpoints, and static and PWA routes; the console server’s non-view routes; the console edge Worker’s routes; and the other first-party HTTP surfaces in pm-stack/. Entries are grouped by surface and follow one shape: what the route is, its inputs, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them.
JSON twins of the manifest pages
One twin per page serves the same data as JSON. The twins are named on their pages in The aggregator website, page by page; the irregular spellings are the contract:
/api/overview.jsonfor/;/api/today.jsonfor/today;/api/digest.jsonand the list/api/digests.jsonfor/digest;/api/attention.jsonfor/attention;/api/reports.jsonfor/reports;/api/board.jsonfor/board;/api/roadmap.jsonfor/roadmap;/api/conflicts.jsonfor/conflicts;/api/quota.jsonfor/quota;/api/dns.jsonfor/dns;/api/aa.jsonfor/aa;/api/search.jsonfor/search;/api/comments/queue.jsonand the full list/api/comments.jsonfor/comments;/api/program.jsonand/api/program-project.jsonfor/programand/program/<id>;/api/queue.jsonand the orchestration twin/api/orchestration.jsonfor/queue;/api/alerts.jsonfor/alerts;/api/notifications.jsonfor/notifications./api/registry.jsonis the twin of/sessions— not/api/sessions.json./api/healthis the twin of/health— no.jsonsuffix. One health assembly feeds page and twin; the twin additionally returns per-page render state (route,lastRenderedAt,okper manifest page)./api/events.jsonis the twin of/events, paginated, with arel=nextlink emitted byserver.ts./api/prompt/threadsis the twin named in the manifest for/chat./api/projects.jsonstill serves although/projectsitself is a redirect, not a page./decisionsand/pagesdeclare no twin inpages.ts. For decisions the server implements its own API family regardless — D7; see the decisions group below.
Decisions and needs-Drew endpoints
POST /api/decisions/<setId>/submit— What it is: the answer endpoint for one decision set; the body carries{submissions}. Behaviour: resolutions record first-resolution-wins in the aggregator’s decisions store; drafts for a resolved question are deleted. Failure shapes: none recorded in the survey.POST /api/decisions/<setId>/deferandPOST /api/decisions/<setId>/request-info— What it is: the other two resolution kinds from the page client: defer (with a lean ofnone,skeptical, orapprove) and request-info.POST /api/decisions/<setId>/events— What it is: draft and edit events from the page client. Alias:/api/decision-sets/<setId>/events.POST /api/decision-sets— What it is: the v2 set-submission endpoint used byscripts/submit-decision-set.ts, with a--refreshmode for standing ledger-mirror sets such as the standing open-questions set. The older producer path isscripts/raise-decision-set.ts, which posts a set throughPOST /api/alertswith thedecisionSetextension, one push per set.POST /api/needs-drew/<ledgerId>/answer— What it is: the answer endpoint for a single raised needs-Drew question. Inputs: the body is{token, optionId}; the per-question token in the answer-page URL is the authority. Behaviour: the service worker posts to this endpoint directly on a notification tap, with no page open; the generated page client is the fallback. The resolution enters the same decisions-ledger machinery as a set answer. D9: which file a single-question answer ultimately writes is UNVERIFIED — the code namessrc/needs-drew.tsas “the question store” and routes the answer through the shared resolution machinery.GET /api/needs-drew.json— What it is: the needs-Drew census: open issues and PRs labelleduser/revieworuser/escalatedacross the fleet repos, deduped, withhands:v1markers (kind: physical,interactive-login,payment,signature). Behaviour: the console splits this census into hands, reviews, and other/escalated. The aggregator census itself never writes labels — D4.
Actions, comments, and reports writes
POST /api/actionsandPOST /api/actions/batch— What it is: dashboard actions on tier items (src/actions.ts). Inputs: kinds aretriage(acknowledge, snooze, escalate, de-escalate, answer, delegate, dismiss),status-request,session(poke, answer, stop), andpreference(set-delegation-default). Behaviour: consumers pollGET /api/actions.json?state=new; outcomes return through the result endpoint below. Session actions are consumed by the fast session-action consumer foropencode-laptop.POST /api/actions/result— What it is: the outcome return path. Inputs: the body is{id, outcome, byRun, note}, withoutcomeone ofappliedorrejected.GET /api/actions/outage-queue.json,POST /api/actions/outage-queue/confirm,POST /api/actions/outage-queue/reject— What it is: the outage-queue variant of the action flow (src/outage-queue.ts).POST /api/comments— What it is: a dashboard-native comment (storesrc/comments.ts), the write behind/discuss/<subject>.POST /api/comments/triage— What it is: triage of a dashboard comment.POST /api/comments/github-result— What it is: the external poster reports the GitHub result back. Behaviour: the dashboard itself never writes GitHub; a fleet job applies and posts, and this endpoint records the outcome.POST /api/reports/resolve— What it is: resolve a prose conflict by choosing a stored version.POST /api/reports/late-update— the late-update write for a report.POST /api/roadmap/annotationsandPOST /api/roadmap/annotations/alias— What it is: roadmap annotations (src/roadmap-annotations.ts); annotations write back onto roadmap rows.
Prompt and chat endpoints
POST /api/promptandGET /api/prompt— What it is: submit a prompt and list prompts (src/prompts.ts).GET /api/prompt/threads,GET /api/prompt/thread/<id>,GET /api/prompt/<id>— What it is: thread list, one thread, one prompt.GET /api/prompt/<id>/attachments/…— What it is: a prompt’s attachments (src/prompt-attachments.ts).PATCH /api/prompt/<id>— update a prompt.GET /api/prompt/unread-count— the unread count behind the/chatnavigation badge.GET /ws/prompt/<id>— What it is: the WebSocket upgrade for a prompt thread (promptWsUpgradeinserver.ts;src/prompt-ws.ts).
Alerts, push, and quota writes
POST /api/alerts— What it is: the alert throat intake. Inputs: a bearer intake token, resolved by secret name (pm-aggregator.alerts-intake-token, viasrc/secrets.ts); extensions includedecisionSet(decision-set producers) andstackHealth(health hooks). Behaviour: posts land in the alerts store and engine insrc/alerts.ts.POST /api/push/subscriptions— What it is: the push subscription upsert path; the preferences page reads stored subscriptions through it.POST /api/push/test— a test send (object referencetest:push).POST /api/push/test-class— a per-class test send (referencestest:<class>, landing URLs per class fromnotifications.ts).GET /api/sw-probe— the service-worker probe.GET /api/alerts/preferences.json— What it is: the twin of/alerts/preferences.POST /quota/refreshandPOST /api/quota/refresh— What it is: the quota refresh writes behind/quota.GET /api/quota/service.json— the twin of/quota/service/<id>, read in a?service=style; UNVERIFIED: the exact query contract beyond the route existing.
Fragments, streaming, identity, and miscellany
/frag/overview,/frag/board,/frag/today,/frag/queue— What it is: Datastar fragments for in-page refresh;/frag/attention/*fragments exist under the attention branch./freshness/stream— What it is: the server-sent-events freshness stream; its snapshot twin is/api/freshness-events.json./api/item/<id>.json— What it is: the machine twin pattern for/item/<subject>. Failure shapes: an unresolved id is a 404 case (#4969)./api/author-identitiesand/api/admin/identity-registry— What it is: identity registry reads and administration (server.ts).POST /api/stack-token/exchange— What it is: the break-glass and stack token exchange (src/stack-token.ts,src/break-glass.ts; scriptscripts/issue-break-glass-token.ts). Inputs: the target must bekaneo,pad, orgrist.POST /webhooks/github— What it is: the aggregator’s GitHub metadata webhook.
Static and PWA routes (aggregator)
/sw.js— the aggregator PWA service worker, generated fromsrc/sw-source.ts./manifest.webmanifest— the PWA manifest./assets/app.css,/assets/datastar.js,/assets/aa-explorer-computations.js,/assets/push-client.js,/assets/prompt-badge.js,/assets/freshness-client.js— the dashboard’s static assets.
Console server routes (non-view)
From pm-stack/console/src/server.ts, base path /console:
GET /console/health— unauthenticated; returns{ok:true}.GET /.well-known/assetlinks.json— Android App Links, unauthenticated.GET /manifest.webmanifest— the console PWA manifest.POST /console/device/linkandGET /console/device/summary— linked-phone authentication, checked by phone link, not by sign-in.GET /console/edge/key— the edge verification public key.GET /console/<apk>— the Android APK itself, signed-in owner only.- Static files:
app.js,app.css,outbox.js,sw.js,icon.svg. - Reads:
GET /console/api/me,GET /console/api/overview,GET /console/api/agents,GET /console/api/messages,GET /console/api/services,GET /console/api/push,GET /console/api/machines,GET /console/api/signin,GET /console/api/devices,GET /console/api/doc/<name>(the named docs the edge and console serve,DOC_NAMESinconsole/src/docs.ts, including the questions doc), andGET /console/api/question(a single-question read,deps.work). - Writes:
POST /console/api/act— the generic audited action endpoint; the action table is in The question sets, enumerated. Route-shaped writes:POST /console/api/queue/<task>/<action>,POST /console/api/prs/<n>/merge,POST /console/api/priorities/<issue>/rank,POST /console/api/issues/<n>/comment,POST /console/api/services/<unit>/<action>, and the logs readGET /console/api/services/<unit>/logs?lines=. - Gate behaviour: non-
/consoleGET and HEAD paths are proxied to the dashboard URL for a signed-in owner. Every action is audit-logged before it is taken; an action that cannot be recorded is not taken (the edge-held path inserver.ts).
Console edge Worker routes
pm-stack/console/edge/src/worker.ts, entry.ts, edge.ts, and direct.ts serve the same SPA and API at pm.security.cab when the laptop is away, holding actions until the host returns. UNVERIFIED: the exact edge-only route table, beyond edge.ts and direct.ts being the held-action and direct-to-host implementations.
Other first-party HTTP surfaces
- Projector (port 7801): webhook intake
POST /github/webhook(HMAC, delivery-GUID dedupe), link registryGET,POST, andDELETE /links, readsGET /items,GET /comments,GET /subjects/<subject>, and an HTML queue view (src/queue-view.ts,src/queue-view-html.ts). UNVERIFIED: the queue view’s route path — the survey records file names only. - Dispatch (port 4879, public as
dispatch.security.cab):GET /health,POST /v1/sessions, and the enqueue endpoint. Dispatch is API-only by its README; no web UI exists indispatch/src/. - OpenCode claimant page:
pm-stack/opencode-claimant/index.htmlis a single static page in the claimant directory. UNVERIFIED: what it displays — the survey records its existence only. - Decision-events Worker:
POST /events(alias/webhook),GET /sets/<setId>/events,GET /sets/<setId>/state,GET /sets/<setId>/stream,GET /health— shared-secret authentication, fail-closed with no secret. See The workers.
Sources: PM-SURVEY website census (pm-stack/aggregator/src/server.ts, pm-stack/aggregator/src/pages.ts, pm-stack/console/src/server.ts), survey files website-pages.md, apps.md, push.md, and disagreements.md (D4, D7, D9), census date 2026-11-23.