Connect custom domain
custom_domain_setConnect a custom domain to a published page: a hostname the USER typed (never invent one — it must be a domain they own). Returns the CNAME record they must create at their DNS provider; SSL certificates are issued automatically after that. Then poll custom_domain_status once the user says the record is in. The subdomain URL keeps working alongside the custom domain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>",
"hostname": "<hostname>"
},
"name": "custom_domain_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The pageId returned when the page was published. | |
| hostname | Yes | The domain the user typed, e.g. "get.acme.com". Apex domains work only if the DNS provider supports CNAME flattening — recommend a subdomain otherwise. |