hosting

GET /v1/sites/{siteId}/cdn/passthrough-reach

Check whether an edge you run yourself already answers for this site's domain.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the hosting.cdn.manage permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/passthrough-reach?host=<host> \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The reading behind the confirm of a CDN move to passthrough ("an edge you run yourself", P6e-054). host is validated exactly as startSiteCdnSwap validates passthrough_target (a 422 for the same inputs: not a hostname, an IP address, a reserved example name, a name with no address in public DNS, the site's own address or one of our edges), then fetched ONCE as GET https://<host>/ with the site's domain as the Host header, the request a visitor makes once the DNS has moved. TLS is verified against the edge's own name. Redirects are not followed. The fetch goes out through the SSRF-fenced egress client: a host that resolves to any address that is not public is never dialled and reads private_address. reading is serves (2xx or 3xx), error (4xx or 5xx: the edge is up and does not serve the domain), private_address, or no_answer (refused, timed out or TLS failed, which is "could not ask", never "does not serve"). Nothing is written and nothing is refused on the reading. Requires hosting.cdn.manage.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).
host (query)stringYesThe edge hostname the site's DNS would point at, as typed.

Response

NameTypeRequiredWhat it is
dataCdnPassthroughReachYesWhether an edge the customer runs answers for the site's domain (P6e-054): one GET https://<host>/ with Host: <domain>, through the SSRF-fenced egress client.

Errors this endpoint can return

401 · 403 · 404 · 422 · 429