Domains

One-click DNS at Cloudflare: creates the records the domain needs (DNS only) with an API token you paste, removes what at that exact name sends visitors elsewhere, and checks the domain again. The token is used for this request only and never stored

post/projects/{projectId}/domains/{hostname}/dns-setup/cloudflare

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/domains/{hostname}/dns-setup/cloudflare
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b
hostnamestring required

Request body

apiTokenstring required

used once for this request, never stored

Response

What changed at Cloudflare, and the domain checked again

zonestring required

the Cloudflare zone that was changed

Changes

No recorded changes to this operation across all 1 revision of this API.