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.
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": {
"hostname": "<hostname>",
"slug": "<slug>"
},
"name": "add_custom_domain"
}
}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. |