Connect a custom domain
connect_domainConnects a domain the owner already owns (for example www.joesplumbing.com.au) to a site. Returns the DNS records the owner must add at their domain provider: a CNAME and an ownership TXT record (the domain does not go live without the TXT). It usually goes live within minutes to a few hours after the DNS change. If the records are still not found after 7 days, the domain is removed and can be connected again. Requires a plan with custom domains. Bare domains are not supported: connect the www version and redirect the bare domain to it at the domain provider. Once the records are added, check_domain reports whether the domain is live.
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": {
"site_id": "<site_id>",
"hostname": "<hostname>"
},
"name": "connect_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site id from list_sites or create_site. | |
| hostname | Yes | The domain to connect, for example www.joesplumbing.com.au. Use a www or other subdomain, not a bare domain. |