Hanzo AI
OpenapiDns

Get zones

Reads one of the calling org's zones by name.

GET /v1/dns/zones/{zone}

Addresshttps://api.hanzo.ai/v1/dns/zones/{zone}
MethodGET
Operationget_dns_zones_by_zone
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one of the calling org's zones by name. The plane owns the authoritative zone and record store behind every name pointed at Hanzo; this head keeps none of it. The address and the query string ARE the plane's own, relayed verbatim, and the plane's answer comes back unchanged — its status code, its Content-Type, and its Location on a redirect this head never follows.

It travels under the CALLER'S OWN identity and substitutes no service credential, which would collapse tenants: the caller's validated session bearer goes upstream as Authorization and the server-validated org as X-Org-Id, so a caller in one org reaches only that org's zones, exactly as if it had called the plane directly. The upstream host comes only from deployment config, never from the request, so no path can re-target another host.

Fails closed before a byte leaves cloud: no validated principal is 403; an API key is 401, because a pk-/sk- key is not a JWT the OIDC-gated plane can validate and there is no substitute credential to send in its place; a path that normalizes outside /v1/dns, or still carries a percent-escape or a .. after one decode, is 400; an unconfigured plane is 503 and an unreachable one 502.

Request

1 field.

FieldInTypeRequiredDescription
zonepathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo dns zones get <zone>

DNS API · All Hanzo APIs · Interactive reference

How is this guide?

On this page