POST/sites/:siteSlug/domains/:domainId/verify
Refresh the domain's validation status from Cloudflare. Call this after updating DNS records to check if the domain has become active. Requires the domains:read scope.
Response
Returns data.domain with the latest status, cfStatus, tlsStatus, and verificationErrors.
Code examples
cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}/verify" \
-H "Authorization: Bearer zxk_live_YOUR_API_KEY" \
-X POSTJavaScript
const res = await fetch(
`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}/verify`,
{
method: "POST",
headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
}
);
const { data } = await res.json();
console.log(data.domain.status); // "active" | "pending" | "error"Base URL: https://www.zyberspace.com