list_hostnames, add_hostname, update_hostname, remove_hostname
Attach custom hostnames to a website and control how they resolve.
Hostnames are resolution rules โ they decide which domains serve or redirect to a website. Domains whose DNS PageWeave manages (or domains PageWeave purchased) are separate account-level resources; see Domains.
Actions
list
List all hostnames attached to a website (name, response_type, redirect_url, verified).
Parameters:
websiteโ Website subdomain, domain, or UUID
add
Attach a custom hostname to a website.
Parameters:
websiteโ Website subdomain, domain, or UUIDnameโ Hostname to attach (e.g.example.com,www.example.com,blog.example.com)response_typeโ How the hostname resolves (defaultserve):serveโ Serves the website. Pro-only at runtime: free sites auto-redirect to the platform subdomain.redirectโ Forwards toredirect_url(e.g.https://example.com).redirect_to_subdomainโ Forwards to the site's platform subdomain.disabledโ Hostname attached but not resolving.
redirect_urlโ Target URL whenresponse_typeisredirect(required for that mode)
Adding an apex in serve mode auto-creates a www.<apex> companion hostname that 301-redirects to the apex.
update
Change a hostname's response_type and optional redirect_url. serve on a free site auto-redirects to the platform subdomain. Requires confirmation (disabling takes the hostname offline).
Parameters:
websiteโ Website subdomain, domain, or UUIDnameโ Hostname to update (exact match)response_typeโserve|redirect|redirect_to_subdomain|disabledredirect_urlโ Target URL whenresponse_typeisredirect
remove
Remove a hostname from a website โ it stops serving/redirecting. Requires confirmation. Also removes an auto-created www.<apex> companion. Does not delete any Domain record (DNS-managed zones are owner resources โ use the domain tools for those).
Parameters:
websiteโ Website subdomain, domain, or UUIDnameโ Hostname to remove (exact match)
SSL
SSL is provisioned automatically via on-demand TLS once DNS resolves to PageWeave's servers. For DNS setup instructions (which records to point at PageWeave), see Domains.
OAuth Scopes
| Action | Scope |
|---|---|
| list | website:read |
| add, update, remove | website:write |