Add a custom domain
add_custom_domainAttach a custom domain to a site by pointing its hostname at cname.shiply.now. The certificate auto-issues; poll readiness with check_custom_domain.
Instructions
Attach a custom domain to a site. Returns the domain record; point the hostname at cname.shiply.now and the certificate auto-issues. Poll readiness with check_custom_domain. Requires an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | The custom hostname, e.g. "www.example.com". | |
| slug | Yes | The site slug to attach the domain to. | |
| apiKey | No | shiply API key (shp_…). Falls back to SHIPLY_API_KEY. |