---
title: "Get a DNS provider by ID"
method: GET
path: "/dns-providers/{id}"
tags: ["DNS Providers"]
---

# Get a DNS provider by ID

`GET /dns-providers/{id}`

## Request

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

## Path parameters

- `id` integer, required

## Response `200`

DNS provider details

- DnsProviderResponse: DNS provider response
  - `created_at` string, required
  - `credentials` unknown, required
  - `description` string, nullable
  - `flat_hostnames_supported` boolean, required: Whether this provider benefits from the flat hostname mode (e.g. Cloudflare Universal SSL). The UI surfaces/recommends the Flat toggle when true.
  - `id` integer, required
  - `is_active` boolean, required
  - `last_error` string, nullable
  - `last_used_at` string, nullable
  - `name` string, required
  - `provider_type` string, required
  - `updated_at` string, required

## Other responses

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

## Changes

- **2026-07-27** `1b060c0a4ba3`: 1 info
  - added the required property `flat_hostnames_supported` to the response with the `200` status
- **2026-04-25** `774be20905f2`: 1 info
  - api operation id `get_provider` removed and replaced with `get_dns_provider`
- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dns-providers/:id/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)
