publish_rendered_page
Turn a rendered page into a shareable guest URL with an access token in one call. Pass an existing page ID or create a new one with title and HTML body.
Instructions
Turn a rendered_page into a ready-to-share guest URL in one call. Pass an existing rendered_page entity_id, or inline {title, html_body, custom_css} to create one. Mints a guest_access_token scoped to that page and returns the absolute …/entities//html?access_token= URL plus ttl_seconds. html_body is injected verbatim into a server template — no html/head/body wrappers. Each call mints a fresh token (tokens are hash-only at rest).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Existing rendered_page entity id to publish. Omit to create a new page from the inline fields below. | |
| title | No | Page title (used when creating a new rendered_page). Rendered into <title> and the <h1> if no html_body header overrides. | |
| html_body | No | Page body HTML, injected verbatim into the server template. Do NOT include <html>/<head>/<body> wrappers. Used when creating a new rendered_page. | |
| custom_css | No | Optional CSS injected as an inline <style> in <head> (used when creating a new rendered_page). | |
| meta_description | No | Optional <meta name=description> value, escaped on render (used when creating a new rendered_page). | |
| idempotency_key | No | Optional idempotency key for the inline-create path (mutating op). Same key + same content reuses the same rendered_page instead of creating a duplicate. Ignored when entity_id is supplied. | |
| user_id | No | Optional. Inferred from authentication if omitted. |