Share pages

Publish your own HTML page at skysay.ai/for/<name> through the REST API or MCP. Available on request.

Share pages are available on request. Publishing is enabled per workspace by Skysay. Workspaces without share-page access receive HTTP 403 from the API and MCP tools.

A share page hosts your own HTML at https://skysay.ai/for/<name>, served exactly as you uploaded it. Workspaces typically use a share page to publish a branded partner or demo page containing one or more embedded AI agents (<skysay-agent link="…"> plus https://skysay.ai/embed.js).

Managing share pages

Share pages are managed through the REST API and MCP only — there is no workspace screen.

ActionREST endpointMCP toolRequired scope
List share pages (metadata only)GET /v1/share-pageslist_share_pagesagents:read
Read one page (including HTML)GET /v1/share-pages/{share_page_id}get_share_pageagents:read
Publish a new pagePOST /v1/share-pagescreate_share_pageagents:write
Replace HTML, rename slug, or toggle live statePATCH /v1/share-pages/{share_page_id}update_share_pageagents:write
Delete a page and free its slugDELETE /v1/share-pages/{share_page_id}delete_share_pageagents:write

Full request and response schemas are in the API reference.

Rules and limits

  • Size cap: HTML text up to 2 MB (2,097,152 bytes), stored and served verbatim with Content-Type: text/html; charset=utf-8.
  • Address (slug): 3 to 40 lowercase letters (a–z), digits (0–9), and single hyphens, unique across all Skysay workspaces. Reserved names are refused.
  • Disabling a page: Set enabled to false via PATCH /v1/share-pages/{share_page_id} or update_share_page. The address stays reserved for your workspace and skysay.ai/for/<slug> answers HTTP 404 until you re-enable or delete it.
  • Project binding: Every share page belongs to a project in your authenticated workspace (project_id). Pass project_id to GET /v1/share-pages or list_share_pages to filter to one project.

Example

Create a share page through POST /v1/share-pages (or create_share_page over MCP) that embeds two AI agents:

{
  "project_id": "proj_example",
  "slug": "acme-demo",
  "enabled": true,
  "html": "<!doctype html><html><body><h1>Acme AI Agents</h1><skysay-agent link=\"acme-sales\"></skysay-agent><skysay-agent link=\"acme-support\"></skysay-agent><script src=\"https://skysay.ai/embed.js\" async></script></body></html>"
}

Once published with enabled: true, visitors can open https://skysay.ai/for/acme-demo without signing in.