Skip to content

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

OperationRequest
List a site's domains GET /v1/sites/{siteId}/domains
Connect a domain to a site POST /v1/sites/{siteId}/domains
Check a domain's DNS now POST /v1/sites/{siteId}/domains/{domainId}/actions/verify
Make a domain the site's primary domain POST /v1/sites/{siteId}/domains/{domainId}/actions/make-primary
Don't make a domain primary once verified POST /v1/sites/{siteId}/domains/{domainId}/actions/cancel-make-primary
Remove a domain from a site DELETE /v1/sites/{siteId}/domains/{domainId}
List the domains of every site GET /v1/site-domains

The SiteDomain object

A domain connected to a site: its DNS and certificate status.

FieldType 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

pending_dns: waiting for its DNS to point at the server. provisioning: DNS is verified and the domain is being set up with its certificate. active: in use. failed: see lastError.

Known values: pending_dnsprovisioningactivefailed More can appear.

sslStatus

string

The domain's SSL certificate: none, pending, active or failed.

Known values: nonependingactivefailed More can appear.

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

The SiteDomain object
{
  "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"
}

Popular

API docs