---
title: "List every container adopted from Traefik labels, plus the labelled containers that were found and rejected."
method: GET
path: "/traefik-discovery/routes"
tags: ["Traefik Discovery"]
---

# List every container adopted from Traefik labels, plus the labelled containers that were found and rejected.

`GET /traefik-discovery/routes`

## Request

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

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Discovered routes and unresolved host conflicts

- TraefikDiscoveredRouteListResponse: Paginated discovered routes, plus the hosts that were found and rejected.
  - `conflicts` TraefikDiscoveryConflictResponse[], required: Labelled containers found by the last reconciliation that were NOT adopted (host owned by a Temps route, or claimed by another container). These have no row of their own — without surfacing them here the operator sees nothing at all for a container they labelled.
    - `container_id` string, required
    - `container_name` string, required
    - `detail` string, required: Human-readable explanation of the conflict.
    - `host` string, required
    - `reason` string, required: Machine-readable discriminator: `owned_by_temps_route` or `claimed_by_another_container`.
    - `router_name` string, required: Traefik router name the host came from.
    - `winner_container_name` string, nullable: Container that holds the host instead, when the conflict is between two discovered containers.
  - `discovery_running` boolean, required: `false` when the watcher isn't running, so a client can explain an empty list as "discovery is off" rather than "nothing was found".
  - `page` integer, required
  - `page_size` integer, required
  - `routes` TraefikDiscoveredRouteResponse[], required
    - `active` boolean, required: Whether this route is currently served by the proxy.
    - `contested_by` string[], required: Other labelled containers that claim this host and lost the collision. Non-empty means someone's container is silently not being routed.
    - `created_at` string, date-time, required
    - `enabled` boolean, required
    - `host` string, required
    - `id` integer, required
    - `inactive_reason` string, nullable: Why it isn't, when `active` is false.
    - `last_seen_at` string, date-time, required
    - `network` string, required
    - `router_name` string, required
    - `target_container_id` string, required
    - `target_container_name` string, required
    - `target_host_port` integer, nullable: Host-published port, used on baremetal installs where the proxy cannot resolve container names.
    - `target_port` integer, required
    - `tls` boolean, required
    - `tls_certificate` TraefikRouteTlsBlock, nullable: TLS state for a single discovered route (ADR-041 §3/§4). Absent when no `traefik_route_certificates` row exists for this host. Never `null` on a host where `cert_authorized = true`.
      - `authorized_at` string, date-time, required
      - `authorized_container_id` string, nullable: Container ID that was authorized. Used for drift comparison.
      - `authorized_container_name` string, nullable
      - `cert_authorized` boolean, required: The operator has explicitly authorized TLS for this host.
      - `container_drift` boolean, required: `true` when the currently-serving container differs from the one that was authorized. Requires operator acknowledgment.
      - `container_drift_detected_at` string, date-time, required: When drift was first detected.
      - `current_container_name` string, nullable: Name of the container that currently holds the host (for the drift UI).
      - `days_remaining` integer, nullable: Days until expiry.
      - `imported_at` string, date-time, required
      - `not_after` string, nullable: ISO 8601 expiry time of the current certificate, if one exists.
      - `renewal_method` string, nullable: `"http-01"` or `"dns-01"`.
      - `serving` boolean, required: `true` when the proxy is currently loading a cert for this host.
      - `source` string, nullable: `"acme"` or `"imported"`.
      - `status` string, nullable: Certificate status as reported by the `domains` row, e.g. `"active"`.
    - `updated_at` string, date-time, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-09-07** `c2a1f69745e7`: 1 info
  - endpoint added

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