---
title: "Preview the impact of switching a managed domain's hostname mode."
method: GET
path: "/dns-providers/{provider_id}/domains/{domain}/hostname-preview"
tags: ["DNS Providers"]
---

# Preview the impact of switching a managed domain's hostname mode.

`GET /dns-providers/{provider_id}/domains/{domain}/hostname-preview`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/dns-providers/{provider_id}/domains/{domain}/hostname-preview`
- Auth: HTTP bearer

## Path parameters

- `provider_id` integer, required
- `domain` string, required

## Query parameters

- `mode` string, required
- `sync` boolean

## Response `200`

Hostname mode preview

- HostnamePreviewResponse: Combined preview of a hostname-mode change.
  - `conflicts` DnsRecordConflict[], required: Generated hostnames whose records the sync may not write until the apply adopts or skips each one. Only a preview reports them: an apply with any left unresolved changes nothing and fails.
    - `adoptable` boolean, required: Whether the record at this name can be adopted. Records another Temps workflow or installation owns, and ambiguous states, cannot: skip them, or resolve them at the provider and preview again.
    - `current_proxied` boolean, nullable: Whether that record is proxied.
    - `current_value` string, nullable: Value of the record at this name and type, when there is exactly one.
    - `name` string, required: Fully-qualified generated hostname.
    - `proxied` boolean, required: Whether the sync would write the record proxied.
    - `reason` string, required: Why the sync may not write the record, and what resolves it.
    - `record_type` string, required: Record type the sync publishes the hostname as.
    - `revision` string, required: Identifies what this preview showed about the conflict. Send it with the adopt or skip decision: the apply refuses a decision whose conflict changed after the preview (the record's value, proxy status or owner, a record next to it, or the value the sync would write).
    - `value` string, required: Value the sync would write.
  - `dns_changes` DnsRecordChange[], required
    - `action` string, required: `"create"`, `"update"` or `"delete"`; `"adopt"` for a record the user confirmed adopting (`value` is its value before any update); `"skip"` for a hostname the user chose to leave untouched; `"conflict"` for one nobody decided on yet (see `conflicts`), which makes an apply change nothing; `"restore"` for a record written back after its replacement failed.
    - `name` string, required
    - `record_type` string, required: Record type, e.g. `"A"` or `"CNAME"`.
    - `value` string, required
  - `hostname_changes` HostnameChange[], required
    - `id` integer, required: Row id of the affected record.
    - `kind` string, required: `"deployment"` or `"environment"`.
    - `new` string, required
    - `old` string, required
  - `total` integer, required
  - `zone_access_ok` boolean, nullable: Whether the provider token can manage this zone (None if not checked).

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Domain not found

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - added the required property `conflicts` to the response with the `200` status
- **2026-10-05** `63a80791dc58`: 1 breaking
  - removed the required property `conflicts` from the response with the `200` status
- **2026-10-03** `de8387218c0b`: 1 info
  - added the required property `conflicts` to the response with the `200` status
- **2026-07-27** `1b060c0a4ba3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dns-providers/:provider_id/domains/:domain/hostname-preview/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
