Install
openclaw skills install huoziPublish Markdown and HTML to huozi.app as beautiful, shareable web pages. Register, manage, and publish — all through conversation.
openclaw skills install huoziPublish Markdown or HTML content to huozi.app as shareable web pages. One API call, instant publishing.
IMPORTANT: When this skill is first loaded, check if HUOZI_API_KEY is set. If NOT, do NOT just show a link — immediately start the interactive registration flow below. Guide the user through it conversationally, step by step.
Tell the user: "Let's set up your Huozi account. What's your email?" Then call:
curl -s -X POST https://huozi.app/api/v1/auth/signup \
-H "Content-Type: application/json" \
-d '{"email": "<user_email>"}'
Tell the user: "A verification code has been sent to your email. Please check your inbox and tell me the code."
When the user provides the code:
curl -s -X POST https://huozi.app/api/v1/auth/verify \
-H "Content-Type: application/json" \
-d '{"email": "<user_email>", "code": "<code>"}'
Save the returned access_token.
Suggest a slug from the user's email username (e.g. alice@gmail.com → alice). Tell the user:
"Your pages will be published at huozi.app/alice/ — would you like to change this, or is this OK?"
After the user confirms (or gives a new slug):
curl -s -X POST https://huozi.app/api/v1/auth/setup \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{"workspace_slug": "<confirmed_slug>"}'
The response contains api_key and workspace.url. Tell the user:
"All set! Your workspace is huozi.app/<slug>/. To save your API key for future sessions, run:
export HUOZI_API_KEY=<api_key>You can now publish Markdown anytime — just tell me what to publish."
Publish or update a Markdown page:
curl -s -X POST https://huozi.app/api/v1/pages \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
-d '{"title": "<title>", "slug": "<slug>", "content": "<markdown>"}'
slug is optional — auto-generated from title if omitted. Keep under 8 words (e.g. weekly-report-apr-14)urlPublish a static HTML page — perfect for landing pages, dashboards, reports with custom styling:
curl -s -X POST https://huozi.app/api/v1/pages \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
-d '{"title": "<title>", "slug": "<slug>", "content": "<html>", "content_type": "html"}'
content_type to "html" (defaults to "markdown" if omitted)<html><head>...</head><body>...</body></html> — head is parsed for <style> and <meta>, body is rendered<html>/<head> tags — treated as body content directly<meta> OG tags (og:title, og:description, og:image) and <meta name="description"> are extracted as fallback metadata; API fields (title, description) always take priority| Category | Allowed | Blocked |
|---|---|---|
| HTML tags | All standard tags: div, span, table, form, svg, img, video, audio, etc. | <script>, <iframe>, <embed>, <object>, <link rel="stylesheet"> |
| CSS | <style> blocks, inline style="", all standard properties (flexbox, grid, animations, transforms, etc.) | @import, expression(), javascript: in url(), -moz-binding, behavior: |
| JavaScript | None | All <script> tags stripped; all event handlers (onclick, onerror, onload, etc.) stripped |
| URLs | http:, https:, mailto:, tel: | javascript: (rewritten to #), data: in CSS url() |
| Images | <img> with http:/https:/data: src | — |
| SVG | Full inline SVG support (path, circle, rect, gradient, filter, etc.) | External SVG via <img src> works; <use href="external.svg"> does not |
| Forms | Display only — <input>, <select>, <textarea>, <button> render but action/method are stripped | No form submission |
| External resources | Images (<img src>), video/audio (<video>, <audio>) via http:/https: | External CSS (<link>), external JS, @import |
| Content size | Max 2MB per page | — |
<style> blocks in <head> or inline style="" attributes; external stylesheets are not supported@import for Google Fonts is blocked; use font-family: system-ui, sans-serif or embed fonts as base64 @font-face if essentialhttps:// URLsmax-width on a container and CSS media queries for mobile supportbackground on body or a wrapper element| Action | Method | Endpoint |
|---|---|---|
| List pages | GET | /api/v1/pages |
| Get page | GET | /api/v1/pages/<slug> |
| Update page | PUT | /api/v1/pages/<slug> |
| Delete page | DELETE | /api/v1/pages/<slug> |
All require Authorization: Bearer <api_key> header. Base URL: https://huozi.app
weekly-report-2026-04-14, publishcontent_type: "html"hz_ prefixcurl via Bash to make API calls