# Iko Run Publish one self-contained UTF-8 HTML file up to 2,000,000 bytes. Include any CSS and trusted scripts inline and images as data URLs. Hosted pages run in a sandbox with embedded forms, external links and external resources disabled. ## Publish POST https://iko.run/v1/sites?slug=weekly-report Content-Type: text/html Body: bytes of index.html Example: curl --fail-with-body -H 'Content-Type: text/html' --data-binary @index.html 'https://iko.run/v1/sites?slug=weekly-report' Omit slug for a generated name. Names are 3–40 lowercase letters, digits and interior hyphens. A 409 slug_taken response includes alternative names. Set ttl_seconds in the query to give the page an expiry (60–31,536,000 seconds). Sites otherwise have no fixed expiry. The JSON response includes url, slug, edit_key and expires_at. Share url and keep edit_key private. The key grants control over this site. Keep local copies of the file and key. For retryable creates, supply a private random UUID in Idempotency-Key and reuse it with the same request. Treat it as a credential and keep it out of chat and logs. ## Update or delete PUT https://iko.run/v1/sites/{slug} with the new HTML, Content-Type: text/html and Authorization: Bearer {edit_key}. The URL and expiry are preserved. DELETE https://iko.run/v1/sites/{slug} with the same Authorization header. For 429, wait for Retry-After. For 413, reduce the file size. The JSON error field is machine-readable. Only publish files the user wants public. Keep keys, credentials and private data out of uploads.