Add a custom domain
websiteDomains_createCustomDomainClaims hostname for this website and registers it with the Cactal edge. Custom domains must first be enabled for the website (websiteDomains.setEnabled, owner-only — enabling is the billing moment); the request fails with 403 custom_domains_disabled otherwise. Adding or removing domains on an enabled website never changes billing. The domain is created in pending_dns status, and the returned dnsRecords list exactly what to create at your DNS provider: an ownership TXT record on _cactal.<hostname> plus a routing record (a CNAME for subdomains or an A record for apex domains). Hostnames must be lowercase ASCII domains (not IP addresses or Cactal platform hosts), each website can have at most 10 custom domains, and a hostname can be claimed by only one website; claims that never verify expire after 7 days. After creating the records, call the verify endpoint or wait for the automatic re-checks.
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": {
"websiteId": "<websiteId>",
"hostname": "<hostname>"
},
"name": "websiteDomains_createCustomDomain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| websiteId | Yes |