POST/sites/:siteSlug/domains/:domainId/pause

Pause a custom domain. Traffic to the domain is stopped (removed from routing KV) but the domain record is retained. Only active domains can be paused. Requires the domains:write scope.

Response

Returns data.domain with status set to paused.

Code examples

cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}/pause" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY" \
  -X POST
JavaScript
await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}/pause`, {
  method: "POST",
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});

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

Get your API key →