---
title: "List all domains"
method: GET
path: "/domains"
tags: ["Domains"]
---

# List all domains

`GET /domains`

## Request

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

## Query parameters

- `page` integer, nullable
- `page_size` integer, nullable
- `search` string, nullable
- `sort_by` 'created_at' | 'domain' | 'status' | 'expiration': Allowlisted sort columns for the paginated domain collection.
- `sort_order` 'asc' | 'desc'

## Response `200`

Domains retrieved successfully

- ListDomainsResponse
  - `domains` DomainResponse[], required
    - `certificate` string, nullable: The PEM-encoded certificate chain (can be displayed in browser or downloaded)
    - `created_at` string, date-time, required
    - `dns_challenge_token` string, nullable
    - `dns_challenge_value` string, nullable
    - `domain` string, required
    - `expiration_time` string, date-time, nullable
    - `failure_cause` 'dns_lookup' | 'unreachable' | 'upstream_answered' | 'dns_record_mismatch' | 'caa_forbids' | 'rate_limited' | 'ca_transient' | 'config' | 'unknown', nullable: Why the last certificate attempt for a domain failed.
    - `id` integer, required
    - `is_wildcard` boolean, required
    - `last_error` string, nullable
    - `last_error_type` string, nullable
    - `last_renewed` string, date-time, nullable
    - `on_demand_backoff_until` string, date-time, nullable: On-demand TLS negative-cache deadline (ISO 8601, UTC), when this hostname's on-demand HTTP-01 issuance is in backoff after a failure (ADR-018 §4). `None` means no active backoff.
    - `status` string, required
    - `updated_at` string, date-time, required
    - `verification_method` string, required
  - `page` integer, required
  - `page_size` integer, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 5 breaking
  - the `domains/items/created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/expiration_time` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/last_renewed` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/on_demand_backoff_until` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - …1 more
- **2026-11-20** `e9e929961b13`: 1 info
  - added the optional property `domains/items/failure_cause` to the response with the `200` status
- **2026-11-20** `f71460bccb8d`: 1 warning
  - removed the optional property `domains/items/failure_cause` from the response with the `200` status
- **2026-11-19** `3be7f6c6c717`: 1 info
  - added the optional property `domains/items/failure_cause` to the response with the `200` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the new optional `query` request parameter `sort_by`
  - added the new optional `query` request parameter `sort_order`

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