---
title: "List records under a hostname"
method: GET
path: "/v1/hostnames/{id}/records"
---

# List records under a hostname

`GET /v1/hostnames/{id}/records`

## Request

- Base URL: `https://dnsmint.com/api`
- URL: `https://dnsmint.com/api/v1/hostnames/{id}/records`
- Auth: HTTP bearer

The TXT, TLSA, CAA, MX, SRV, SSHFP, HTTPS or SVCB records on this hostname. Certificate-challenge records are not listed: they belong to issuance, not to you.

## Path parameters

- `id` string, required

## Response `200`

Records

- HostRecordList
  - `records` HostRecord[]
    - `id` string: Pass this to DELETE.
    - `name` string
    - `type` 'TXT' | 'TLSA' | 'CAA' | 'MX' | 'SRV' | 'SSHFP' | 'HTTPS' | 'SVCB'
    - `ttl` integer
    - `data` object: The record's fields: `text` for TXT; `usage`, `selector`, `matching_type` and `association` for TLSA.

## Other responses

- `401`: Missing or invalid API key
- `403`: Key lacks hostnames:read, or is narrowed to another hostname
- `404`: Hostname not found

---

[API](https://skmtc.dev/dnsmint/apis/dnsmint-api.md) · [All operations](https://skmtc.dev/dnsmint/apis/dnsmint-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dnsmint/apis/dnsmint-api/revisions/98fb1f87725a?raw)
