# EB2026 Public Endpoints

> **Status:** CURRENT
> **Last verified:** 2026-11-28

This file describes public HTTP surfaces. VM origins listen on loopback on Google and are reached through Cloudflare; Worker routes have no VM port. See `sites.md` for the site catalog and `architecture.md` for the topology.

Corpus retrieval endpoints are public and read-only. Account, session, registration, and model-dependent features enforce their own access rules; a public UI or HTTP 200 status response does not imply anonymous access to every action.

## Sites and application surfaces

| URL | Host / layer | Service | Port | Purpose | Access model |
| --- | --- | --- | ---: | --- | --- |
| `https://telegram365books.stream/` | Google via Cloudflare tunnel | `apex-static.service` | 8081 | Apex identity page | Public static |
| `https://www.telegram365books.stream/` | Google via Cloudflare tunnel | `apex-static.service` | 8081 | Apex alias | Public static |
| `https://eb2026.telegram365books.stream/` | Google via Cloudflare tunnel | `eb2026-static.service` | 8080 | Digital bookshelf, maps, KB, PWA | Public static |
| `https://sea.telegram365books.stream/` | Google via Cloudflare tunnel | `sea.service` | 8091 | Knowledge Sea advisor | Public UI; `/api/auth` reports current account/model availability |
| `https://api.telegram365books.stream/` | Google via Cloudflare tunnel | `sea-api.service` | 8092 | Knowledge Sea public retrieval API | Public, read-only; no API key; CORS enabled |
| `https://eddy.telegram365books.stream/` | Google via Cloudflare tunnel | `eddy.service` | 8093 | Eddy knowledge advisor | Public UI; account-gated features use `/api/auth` and `eb_acct` |
| `https://reg.telegram365books.stream/` | Google via Cloudflare tunnel | `reg-static.service` | 8084 | Registration and account settings | Public UI; account actions require session state |
| `https://acct.telegram365books.stream/` | Cloudflare Worker `gm-worker` | Worker route | — | Account dashboard and AI-provider relay | Anonymous status is public; account data/actions require Worker session state |
| `https://mcq.telegram365books.stream/` | Google via Cloudflare tunnel | `mcq-static.service` | 8086 | EB MCQ practice engine | Public UI; non-English generation requires registered account/provider access through Sea |
| `https://qbank.telegram365books.stream/` | Google via Cloudflare tunnel | `qbank-static.service` | 8085 | EB written model papers | Public static |
| `https://qbank.telegram365books.stream/happ-mcq/` | Google via Cloudflare tunnel | `qbank-static.service` | 8085 | HAPP / Hospital Admin MCQ generator | Public UI; non-English generation requires registered account/provider access through Sea |
| `https://qbank.telegram365books.stream/happ/` | Google via Cloudflare tunnel | `qbank-static.service` | 8085 | HAPP / hospital-management model papers | Public static |
| `https://tech.telegram365books.stream/` | Google via Cloudflare tunnel | `tech-static.service` | 8087 | This documentation site | Public static |

`acct.telegram365books.stream` is not backed by Sea's `:8091` port. The Worker custom-domain binding is not visible in VM ingress and was not re-queried through Cloudflare APIs.

## Knowledge Sea API

The operation contract is the live [OpenAPI document](https://api.telegram365books.stream/openapi.json). Topic IDs and corpus content can change; discover them from `/v1/topics` and the published KB rather than copying counts into clients.

| URL | Method | Purpose |
| --- | --- | --- |
| `https://api.telegram365books.stream/health` | GET | API health and corpus availability |
| `https://api.telegram365books.stream/openapi.json` | GET | OpenAPI 3.0 operation contract |
| `https://api.telegram365books.stream/v1/topics` | GET | List current exam topics |
| `https://api.telegram365books.stream/v1/topics/{id}` | GET | Retrieve one topic's routing detail |
| `https://api.telegram365books.stream/v1/clause/{id}` | GET | Retrieve an exact clause |
| `https://api.telegram365books.stream/v1/related/{id}` | GET | Retrieve cites / cited-by relations |
| `https://api.telegram365books.stream/v1/map/{book}` | GET | Retrieve a route map |
| `https://api.telegram365books.stream/v1/search?q=...` | GET | Full-text search |
| `https://api.telegram365books.stream/v1/quote-check` | POST | Verify a quotation against canonical clause text |
| `https://api.telegram365books.stream/v1/tools/{name}` | POST | Execute a documented retrieval tool |

The topic-detail path is `/v1/topics/{id}` (plural). The singular `/v1/topic/{id}` spelling returned 404 in the live check and must not be used.

## Knowledge Sea and Eddy routes

| URL | Method | Purpose |
| --- | --- | --- |
| `https://sea.telegram365books.stream/api/auth` | GET | Account status and available model list |
| `https://sea.telegram365books.stream/api/chat` | POST | Account-aware SSE chat turn |
| `https://sea.telegram365books.stream/api/sessions` | GET | List the current browser's sessions |
| `https://sea.telegram365books.stream/api/session` | GET | Read a session |
| `https://sea.telegram365books.stream/api/session/delete` | POST | Delete a session |
| `https://sea.telegram365books.stream/api/session/handoff` | POST | Build a case handoff without a model call |
| `https://sea.telegram365books.stream/api/translate` | POST | Translate the last answer through an available lane |
| `https://sea.telegram365books.stream/mcq/auth` | GET | Account probe for MCQ generation |
| `https://sea.telegram365books.stream/mcq/generate` | POST | Generate an account-gated MCQ paper |
| `https://eddy.telegram365books.stream/api/auth` | GET | Eddy account status and model list |
| `https://eddy.telegram365books.stream/api/chat` | POST | Eddy SSE chat turn |
| `https://eddy.telegram365books.stream/api/sessions` | GET | List Eddy sessions |
| `https://eddy.telegram365books.stream/api/session` | GET | Read an Eddy session |

The detailed Sea route inventory is in `sea.md`. Service behavior and auth responses take precedence over this summary.

## Account Worker routes

| URL | Method | Purpose |
| --- | --- | --- |
| `https://acct.telegram365books.stream/api/account/me` | GET | Account status and preferences for the current Worker session |
| `https://acct.telegram365books.stream/api/account/lang` | POST | Save language preference |
| `https://acct.telegram365books.stream/api/account/model` | POST | Save preferred model |
| `https://acct.telegram365books.stream/api/account/hadmin` | POST | Save hospital-management opt-in |
| `https://acct.telegram365books.stream/api/account/unsubscribe` | POST | Clear bound provider keys |
| `https://acct.telegram365books.stream/api/account/feedback` | POST | Submit feedback |

These are Worker routes. Do not construct VM-port URLs for them.

## Published static resources

| URL | Purpose |
| --- | --- |
| `https://eb2026.telegram365books.stream/llms.txt` | AI entry point |
| `https://eb2026.telegram365books.stream/sitemap.xml` | Bookshelf sitemap |
| `https://eb2026.telegram365books.stream/sitemap.html` | AI instructions and index |
| `https://eb2026.telegram365books.stream/map/fr.html` | FR graph map |
| `https://eb2026.telegram365books.stream/map/ec1.html` | EC1 graph map |
| `https://eb2026.telegram365books.stream/map/ec2.html` | EC2 graph map |
| `https://eb2026.telegram365books.stream/map/pog.html` | POG graph map |
| `https://eb2026.telegram365books.stream/map/psf.html` | PSF graph map |
| `https://eb2026.telegram365books.stream/map/dh.html` | Hospital-management graph map |
| `https://eb2026.telegram365books.stream/kb/all.ndjson` | Current full corpus dump |
| `https://eb2026.telegram365books.stream/kb/clause/<id>.html` | Human-readable clause pages |
| `https://eb2026.telegram365books.stream/sw.js` | PWA service worker |
| `https://eb2026.telegram365books.stream/pwa-manifest.json` | PWA manifest |
| `https://tech.telegram365books.stream/openapi.json` | Checked-in copy of the API contract; live API remains authoritative |

## Retired endpoints

- `tg.telegram365books.stream` — **RETIRED**; no current Google ingress or `:8082` listener.
- `mcp.telegram365books.stream` — **RETIRED**; absent from current Google ingress.

Do not use retired hostnames as current API or site endpoints.
