Add a custom domain
Claims 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.
Request
- Base URL: https://api.cactal.ai/v1
- URL: https://api.cactal.ai/v1/websites/{websiteId}/domains
- Auth: HTTP bearer
Path parameters
Request body
Response
The created domain in pending_dns status. Next: create the dnsRecords at your DNS provider, then call websiteDomains.verifyCustomDomain.
Changes
No recorded changes to this operation across all 1 revision of this API.