← Home
POST/hyax-api/v1/domain/publish-dns

Publish domain DNS to Cloudflare

Writes the custom domain's missing or wrong DNS records into the team's own Cloudflare zone, using the Cloudflare API token connected under Settings → Integrations. Records that already check out are left alone; the certificate CNAME is set to DNS only and the site CNAME keeps its existing proxy setting. Subdomain (CNAME) setups only. Needs a key with the `admin` scope.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request

curl -X POST 'https://platform.hyax.com/hyax-api/v1/domain/publish-dns' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Response

{
  "domain": "www.example.com",
  "zoneName": "example.com",
  "alreadyCorrect": [{ "type": "CNAME", "name": "www" }],
  "results": [{ "type": "CNAME", "name": "_acme-challenge.www.example.com", "status": "updated" }],
  "publishedCount": 1,
  "failedCount": 0,
  "message": "Published 1 DNS record to the example.com Cloudflare zone. …"
}