---
title: "Whether Traefik label discovery is active on this instance, and how to turn it on when it is not."
method: GET
path: "/traefik-discovery/status"
tags: ["Traefik Discovery"]
---

# Whether Traefik label discovery is active on this instance, and how to turn it on when it is not.

`GET /traefik-discovery/status`

## Request

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

## Response `200`

Discovery status. `configured: false` means it is not turned on here — the `setup` block says exactly how to turn it on

- TraefikDiscoveryStatusResponse: Capability + status of Traefik label discovery on this instance.
  - `configured` boolean, required: `true` only when the watcher is actually running in this process. `false` means "not turned on here", never "not supported" — the setup block below always says how to turn it on.
  - `discovered_route_count` integer, required: Rows currently in `traefik_discovered_routes` (all networks).
  - `enabled` boolean, required: Whether `TEMPS_TRAEFIK_DISCOVERY_ENABLED` resolved to true. Can be `true` while `configured` is `false` (e.g. Docker unreachable).
  - `enabled_route_count` integer, required: Of those, how many are enabled and therefore in the live route table.
  - `last_reconciliation` TraefikReconciliationResponse, nullable: Summary of the most recent reconciliation pass.
    - `completed_at` string, date-time, required
    - `conflicts` TraefikDiscoveryConflictResponse[], required
      - `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.
    - `containers_scanned` integer, required
    - `network` string, required
    - `routes_removed` integer, required
    - `routes_unchanged` integer, required
    - `routes_upserted` integer, required
    - `skipped_temps_managed` integer, required: Containers skipped because Temps deployed them (they already have a route and must never re-derive one from labels they control).
  - `network` string, required: Docker network being watched, or the one that *would* be watched.
  - `poll_interval_seconds` integer, required: Interval of the full reconciliation safety net.
  - `reason` string, nullable: Why discovery isn't active, when `configured` is false.
  - `setup` TraefikDiscoverySetupResponse, required: How an operator turns discovery on. Always returned, including when discovery is already running, so the console/CLI can render the exact invocation instead of sending the reader to the docs.
    - `enable_env_var` string, required: Environment variable that opts this installation in.
    - `example` string, required: A concrete, copy-pasteable example of enabling it.
    - `network_env_var` string, required: Environment variable overriding the watched Docker network.
    - `requires_restart` boolean, required: These are read once at process start: changing them needs a restart.

## 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/status/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)
