single static HTML page hosting
Publish one self-contained HTML document per page via POST /api/pages (Bearer PAT/JWT, up to 10 MB); it is served publicly at /<owner>/<page_id>.
Hosted pages run in a CSP sandbox with an opaque origin: no cookies, no same-origin requests, no credentialed CORS against the platform. Management is API-only on purpose — this origin hosts untrusted HTML.
Host a single self-contained static HTML page per id, served publicly under a sandbox CSP (opaque origin — hosted pages get no platform credentials). 10MB per page.
Base URL: https://page.lishuyu.app — paths below are relative to it.
| method | path | auth | purpose |
|---|---|---|---|
POST | /api/pages | PAT/JWT (write) | publish a page — body {html, title?}; returns id + public url |
GET | /api/pages | PAT/JWT (read) | list your pages (limit, offset) |
GET | /api/pages/{id} | PAT/JWT (read) | one page's metadata |
PUT | /api/pages/{id} | PAT/JWT (write) | replace html and/or title — same public url |
DELETE | /api/pages/{id} | PAT/JWT (write) | delete a page |
GET | /{owner}/{page_id} | public | the hosted page itself (text/html, sandbox CSP) |
GET | /api/admin/pages | admin | list all pages |
Other platform services: GET https://registry.lishuyu.app/llm.txt (public how-to), or authenticate and query GET https://registry.lishuyu.app/api/services/discover/{capability} to find a capability, then call that service directly.