Attach a custom domain
set_custom_domainAttach a custom hostname (e.g. example.com, www.example.com, app.example.com) to a Sitelas site. Registers the domain with the CDN, stores it against the site, and returns the EXACT DNS records the user needs to add at their registrar — apex domains get an A record (76.76.21.21) plus a www CNAME, subdomains get a single CNAME. Records are returned both structured (dns_records) and as a copy-pasteable human-readable list (dns_instructions). Relay dns_instructions and next_step verbatim. After DNS propagates (5–30 min typical), call check_custom_domain (with domain) to flip the verified flag. Custom domains are a Pro feature: on a Free site (list_sites and get_site give each site's plan) it returns billing_gate — say so once, before offering to connect one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Apex or subdomain hostname like `example.com` or `www.example.com`. Do NOT include a protocol (`https://`) or trailing slash. | |
| site_id | Yes | The site UUID to attach the custom domain to. |