GET/sites/:siteSlug/domains
List all custom domains attached to a site. Requires the domains:read scope.
Response
Returns data.domains — an array of domain objects. Each includes id, domain, status (pending | active | paused | error), cfHostnameId, sslStatus, verificationErrors, createdAt, and updatedAt.
Example response
{
"data": {
"domains": [
{
"id": "dom_abc123",
"domain": "www.myapp.com",
"status": "active",
"cfHostnameId": "cf_hostname_xyz",
"sslStatus": "active",
"verificationErrors": [],
"createdAt": "2026-03-25T10:00:00Z",
"updatedAt": "2026-03-25T10:00:00Z"
}
]
}
}Code examples
cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains" \
-H "Authorization: Bearer zxk_live_YOUR_API_KEY"JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains`, {
headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const data = await res.json();
console.log(data);Base URL: https://www.zyberspace.com