Pages

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.

LLM / agent navigation — how to call pages

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.

methodpathauthpurpose
POST/api/pagesPAT/JWT (write)publish a page — body {html, title?}; returns id + public url
GET/api/pagesPAT/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}publicthe hosted page itself (text/html, sandbox CSP)
GET/api/admin/pagesadminlist all pages
Bearer PAT/JWT. Publishing is API-only; there is deliberately no cookie web UI on this origin.

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.