GET/sites/:siteSlug/domains/:domainId

Fetch a single custom domain by its ID. Returns current status and TLS details. Requires the domains:read scope.

Path parameters

siteSlug: The site's URL slug. domainId: The domain record ID (e.g. dom_abc123).

Code examples

cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY"
JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}`, {
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const data = await res.json();
console.log(data);

Base URL: https://www.zyberspace.com

Get your API key →