Site domains
Connect domains to sites, verify their DNS and choose the primary one. For the same in the control panel, see Connect your domain.
Operations
| Operation | Request |
|---|---|
| List a site's domains | GET / |
| Connect a domain to a site | POST / |
| Check a domain's DNS now | POST / |
| Make a domain the site's primary domain | POST / |
| Don't make a domain primary once verified | POST / |
| Remove a domain from a site | DELETE / |
| List the domains of every site | GET / |
The SiteDomain object
A domain connected to a site: its DNS and certificate status.
| Field | Type and description |
|---|---|
id | string The domain's id. |
siteId | string The site it's connected to. |
serverId | string The site's server. |
hostname | string The domain, like shop.example.com. |
isPrimary | boolean Whether the site is served on this domain (the others redirect to it). |
isBuiltIn | boolean The address every site gets. It can't be removed. |
primaryOnVerify | boolean Still waiting for DNS, and becomes the primary domain once its DNS is verified. |
status | string
Known values: |
sslStatus | string The domain's SSL certificate: Known values: |
dnsTarget | string or null Point the domain's A record at this address (the server's IPv4). Null until the server has one. |
lastError | string or null Why the last DNS check or setup failed. Null otherwise. |
verifiedAt | string or null An ISO 8601 time, in UTC When its DNS was verified. Null until then. |
createdAt | string An ISO 8601 time, in UTC When the domain was added. |
Example
{
"id": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"hostname": "shop.example.com",
"isPrimary": true,
"isBuiltIn": false,
"primaryOnVerify": false,
"status": "active",
"sslStatus": "active",
"dnsTarget": "203.0.113.10",
"lastError": null,
"verifiedAt": "2026-11-18T09:20:44.000Z",
"createdAt": "2026-11-18T09:18:03.000Z"
}