Bind your own domain (request it, get the DNS records to add)
bind_domainBind LivePage to the user’s own domain (such as go.acme.com, acme.com or a.b.acme.com) so readers who open it see a chosen page. This is a premium feature: only workspaces whose owner has a premium account can bind new domains, 3 per workspace (a root domain that redirects to www counts as one together with www); on a free account a new request returns quota_reached (domains already bound keep working). Every workspace already has its default address .hy.24haowan.com — use set_page_path to put pages there. Only the workspace owner can request one. One call returns every record to add at the DNS provider in records (type / name = host / value / why), the DNS provider dns_provider, notes and say (relay it to the user as it is). If you have tools for the user’s DNS provider, add the records yourself; otherwise give records to the user as they are and ask them to tell you when done. We never take the user’s DNS provider keys. After the records are in, call verify_domain to check progress (each call also moves it forward one step) and call again after retry_after_s until state=active; then use set_domain_route to choose which name opens which page. Idempotent: calling again with the same domain returns the same record and its current progress. A domain with an ICP filing (with any provider) is served from mainland China; one without a filing can still be bound and is served from overseas nodes (slower inside mainland China) — once it is filed, switch it with set_domain_region. Root domains, flattening first: if the DNS provider can flatten (Cloudflare and DNSPod Enterprise / Exclusive are recognised automatically; for Alibaba Cloud DNS Flagship / Exclusive or DNSPod Enterprise, pass apex_mode="flatten" once the user confirms their edition) it opens in place — served straight from the acceleration network, no redirect, fast in mainland China, and the first note recommends it; only otherwise does it redirect to www (a 301 through our US redirect host, about 1 extra second in mainland China), and www is requested together with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | The domain to bind, without https:// or a path, such as go.acme.com | |
| apex_mode | No | Root domains only: flatten = the user confirmed their DNS plan supports flattening (the root domain opens in place); redirect = send it to www. Omit to choose from the DNS provider |