Turn the workspace home page https://<workspace>.24hw.cn/ into one link that holds everything (for a social-media bio, a WeChat signature or a business-card QR code): 1–3 pinned large cards, section headings, external link cards (website, shop, social accounts…) and contact buttons (add-on-WeChat QR code, phone, email, or one item). Call with no arguments to read the current state (layout, links, contact buttons, clicks in the last 7 days).
Items are refs: p:<page id>, f:<folder id>, l:<link id> (add links first with links_add; with section they go straight into that section).
- layout replaces the whole layout {pinned, sections:[{title, items}], rest:"auto"|"none", hidden}; null restores the automatic layout. Or pass only sections / rest, or use pin / unpin / hide / show.
- rest=auto: public pages not placed anywhere follow, newest first; none: only pinned and sectioned items show.
- hide: do not list a page / folder on the home page without changing its own visibility (its link still works); show undoes it.
★ The home page is a showcase, not a key: it only shows content that is itself public or passcode-protected; private items placed in the layout stay invisible to readers (the result names them). The home page is members-only by default; to share it, ask the user and then use set_visibility(home: true).
★ External links accept https / tel / mailto only; readers first see a “leaving LivePage” page, which also counts the click.
★ Free: pinning, sections, external links, contact buttons. Premium (workspace owner): theme colour and banner image.
Editors and owners can call it.