Publish a flyer
publish_flyerPublish an HTML document at a short public URL and return the link. Use this when the user wants to view a page you made in a real browser, send it to someone, or open it on another device — anywhere handing back raw markup is not good enough.
The link works for anyone who has it, with no account and no sign-in, and expires on its own (7 days by default). It is public: anyone with the URL can read the page, so do not publish anything the user would not post openly, and confirm first unless they have asked you to share it.
Plain (unencrypted) only. The document reaches the server as text, so this cannot produce an encrypted flyer — for that the user runs npx flingflyers <file> -e --persist on their own machine, where the key is generated locally and never sent. Say so rather than implying this is private.
Single self-contained document: inline the CSS, JS and images, or use data URIs. External file references will not resolve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The complete HTML document, including <!doctype html>. Must be self-contained. | |
| ttl_hours | No | How long the link should live, in hours. Default 168 (7 days), maximum 720 (30 days). |