Publish website
publish_sitePublish HTML/CSS/JS or any static files to a live public HTTPS URL at .chorus.host in one call. No account or API key needed. Use it when the user asks to publish, host, deploy or share a page, website, landing page, report, dashboard, portfolio, game or demo, or wants a link to something you made. Send every file with its path (index.html is served at the root) and its content: plain text for HTML, CSS, JS, SVG, JSON and Markdown, or base64 with encoding='base64' for images, fonts and other binary files. Each call publishes the complete site: files you leave out are removed. Limits: 4 MB of file content per call without an API key, 10 MB with one, and 1,000 files. Anonymous sites stay live for 24 hours; the result has a claim_url to give the user so they can keep the site for free, and a claim_token to save. To update a site, call again with the same slug and its claim_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Optional. Subdomain to publish to (3-63 lowercase letters, digits and hyphens). Leave empty for a random one. To update an existing site, pass its slug together with its claim_token. | |
| files | Yes | Every file of the site. Each call replaces all files of the site. | |
| title | No | Optional human-readable title saved with the site. | |
| claim_token | No | The claim_token (ctk_...) returned when the site was first published. Required to update an anonymous site. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Live URL of the site root. | |
| slug | Yes | ||
| updated | Yes | True when an existing site got a new version. | |
| page_url | Yes | URL to open: the site root, or the only HTML page when there is no index.html. | |
| warnings | No | ||
| anonymous | Yes | True when the site is not owned by an account and will expire unless claimed. | |
| claim_url | No | Link for the user to keep the site: they open it and sign in with their email. | |
| expires_at | No | When the site will be deleted (RFC 3339), unless claimed. | |
| file_count | Yes | ||
| next_steps | Yes | Notes for you, the agent. | |
| version_id | Yes | ||
| claim_token | No | Secret needed to update this anonymous site later. Save it; never put it on the page. | |
| total_bytes | Yes | ||
| tell_the_user | Yes | Plain-English message to relay to the user. |