domains

PUT /v1/domains/{domainId}/forward

Forward a parked domain to another web address (P4-060).

All domains 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 domains.dns.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 PUT https://api.zinndigital.com/v1/domains/{domainId}/forward \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "target_url": <string> }'

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

Saves the forward and points the domain's apex and www at the holder edge (the response's dns is the holder pass outcome: written/already when they point there, live_content when the zone's own records answer there instead). Every visit to the apex or www, over http or https with a valid certificate, then answers status_code with Location = target_url, plus the visited path and query when preserve_path is true and the target has no query of its own. A bare host is read as https://. Refused with a 409 refusal.domain.forwardSiteAttached for a domain with a site and refusal.domain.forwardNotOurDns without a zone of ours; a 422 refusal.domain.forwardTargetInvalid / refusal.domain.forwardTargetLoop for a target that is not an http(s) URL or is the domain itself. Requires domains.dns.manage.

Parameters

NameTypeRequiredWhat it is
domainId (path)UuidYesThe domain's id.

Request body

NameTypeRequiredWhat it is
target_urlstringYesAn http(s) URL; a bare host such as example.com/page is read as https.
status_codeinteger<301, 302>No301 permanent, 302 temporary.
preserve_pathbooleanNoAppend the visited path and query to the target.

Response

NameTypeRequiredWhat it is
domain_idstringYes—
eligiblebooleanYes—
ineligible_reasonobjectYes—
forwardobjectYes—
dnsstringNoPUT only: the holder pass outcome for the apex and www (written, already, live_content, no_zone, failed, not_configured).

Errors this endpoint can return

400 · 401 · 403 · 404 · 409 · 422 · 429