---
title: "Whether visitors can reach each address of an environment."
method: GET
path: "/projects/{project_id}/environments/{environment_id}/reachability"
tags: ["Reachability"]
---

# Whether visitors can reach each address of an environment.

`GET /projects/{project_id}/environments/{environment_id}/reachability`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{environment_id}/reachability`
- Auth: HTTP bearer

Per address: who it is for, how traffic gets in, whether it works, why
not and what to do. Reachability is judged per address, not per node:
one ingress serves every app (ADR-020). When nothing is reachable the
response carries the plan *Make it reachable* would offer.

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Response `200`

- EnvironmentReachability: Everything about one environment's addresses.
  - `addresses` AddressReachability[], required
    - `action` ReachAction, nullable: What fixes it.
      - `command` string, nullable: A command to run, when that is the fix.
      - `href` string, nullable: A console path, when there is a page for it.
      - `kind` 'make_reachable' | 'deploy' | 'set_dns_record' | 'open_ingress' | 'open_worker' | 'wait' | 'run_command', required
      - `label` string, required
    - `address` string, required
    - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: Who an address is for.
    - `custom_domain_id` integer, nullable: The custom domain row, for a custom domain.
    - `findings` ReachFinding[]: What the check noticed on an address that is reachable anyway (ADR 070 D4). A `warning` is a problem and is also said in `reason`; an `info` note is not.
      - `action` ReachAction, nullable: What fixes it.
        - `command` string, nullable: A command to run, when that is the fix.
        - `href` string, nullable: A console path, when there is a page for it.
        - `kind` 'make_reachable' | 'deploy' | 'set_dns_record' | 'open_ingress' | 'open_worker' | 'wait' | 'run_command', required
        - `label` string, required
      - `kind` 'plain_http_served' | 'plain_http_not_chosen' | 'plain_http_allowed', required: What a finding on an address is about (ADR 070 D4).
      - `level` 'info' | 'warning', required: How much a finding matters.
      - `message` string, required
    - `network` string, nullable: For a private address: the network it is reachable from, `Tailscale` or the range (ADR 064 D7).
    - `reason` string, required
    - `source` 'generated' | 'environment_domain' | 'custom_domain' | 'tunnel_host', required: Where an address comes from.
    - `state` 'reachable' | 'not_reachable' | 'checking' | 'unknown', required
    - `way_in` string, nullable: How traffic gets in: `tunnel:<name>`, `direct:<node>`, `direct:control-plane`, or `private:<node>` for a worker's private listener. `None` while nothing does.
  - `deployed` boolean, required: Whether anything is deployed to it.
  - `environment_id` integer, required
  - `environment_name` string, required
  - `plan` ReachabilityPlan, nullable
    - `address` string, nullable: The address asked for, or the one Temps suggests.
    - `address_error` string, nullable: Why the address cannot be used, when it cannot.
    - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: Who an address is for.
    - `blocked` PlanBlocked, nullable: Why no option fits, and what would make one.
      - `action` ReachAction, nullable: What fixes it.
        - `command` string, nullable: A command to run, when that is the fix.
        - `href` string, nullable: A console path, when there is a page for it.
        - `kind` 'make_reachable' | 'deploy' | 'set_dns_record' | 'open_ingress' | 'open_worker' | 'wait' | 'run_command', required
        - `label` string, required
      - `reason` string, required
    - `expires_at` string, date-time, nullable
    - `fingerprint` string, nullable: A hash of everything the plan depends on: the environment's addresses and audiences, DNS providers and zones, tunnels with their domains, `auto_publish` and hostname choices, and workers' ingress modes. `apply` recomputes it and refuses a plan the cluster has moved on from.
    - `gate` 'temps' | 'cloudflare_access' | 'unsupported', nullable: Which gate an address has (D7). Unknown values read as `Unsupported`, and an unsupported gate admits nobody.
    - `options` PlanOption[], required: In the order Temps prefers them; the first is recommended.
      - `actions` integer, required: How many things the user does: answer, confirm, create.
      - `confirmation` string, nullable: Set when the option changes what another choice decided (ADR 058 D9's hostname choice): what it changes, in words. Applying it needs `confirmed: true`.
      - `description` string, required
      - `fields` SetupField[], required: What the user still has to answer (ADR 058 D8 descriptor form). `address` is answered with [`ReachabilityPlan::address`] by default.
        - `help` string, nullable
        - `key` string, required: The key in `values` of the create request.
        - `kind` union, required
          - object
            - `type` 'text', required
          - object: Stored encrypted, never returned by the API.
            - `type` 'secret', required
          - object: One of the cluster's DNS providers, of `provider_type` when set.
            - `provider_type` string, nullable
            - `type` 'dns_provider', required
          - object: A domain managed by the DNS provider chosen in the field `provider_field`, or with `allow_subdomain` a name under one.
            - `allow_subdomain` boolean
            - `provider_field` string, required
            - `type` 'managed_domain', required
          - object: Teams of this instance, answered as a list of team ids.
            - `type` 'teams', required
          - object: Users of this instance, answered as a list of user ids.
            - `type` 'users', required
          - object: One of `choices`, answered as its `value`.
            - `choices` FieldChoice[], required
              - …
            - `type` 'choice', required
          - object: A list of text values, answered as an array of strings.
            - `type` 'text_list', required
        - `label` string, required
        - `placeholder` string, nullable
        - `required` boolean, required
      - `kind` 'existing_tunnel' | 'direct_managed_dns' | 'new_tunnel' | 'new_tunnel_with_token' | 'direct_manual_dns' | 'private_worker' | 'tailscale_serve' | 'tailscale_service' | 'tailscale_service_with_credential' | 'tunnel_environment_hosts', required: One way to make the address reachable.
      - `recommended` boolean, required: The first option that fits, in the ADR's preference order.
      - `required_permissions` string[], required: Permissions applying it needs on top of `projects:write`.
      - `steps` PlanStep[], required
        - `kind` 'check_token' | 'save_dns_provider' | 'manage_domain' | 'create_tunnel' | 'wait_for_tunnel' | 'attach_domain' | 'route_hostname' | 'set_dns_record' | 'show_dns_record' | 'issue_certificate' | 'wait_for_publication' | 'check_reachability' | 'set_audience' | 'access_app' | 'configure_tailscale_serve' | 'save_tailscale_credential' | 'define_tailscale_service' | 'wait_for_service_approval' | 'publish_environment_hosts' | 'redirect_to_https' | 'standard_ports_only' | 'set_http_policy', required
        - `label` string, required
      - `title` string, required
      - `warnings` string[], required: Things worth knowing before choosing it.
      - `way_in` string, required: How traffic will get in, as in [`AddressReachability::way_in`].
    - `plan_id` string, nullable: What `apply` names to act on this plan. Plans expire after 15 minutes and are applied once; `None` on the plan attached to `GET …/reachability`, which is not stored.
    - `principals` TailnetPrincipal[]: For `tailnet_users`: who the address will admit, as the plan was made for them (ADR 065 D6). Apply sets exactly this list.
      - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
      - `value` string, required
  - `primary_address` PrimaryAddress, nullable: The address every surface means by "the app's address".
    - `address` string, required: The hostname, without a scheme.
    - `kind` 'custom_domain' | 'tunnel_host' | 'generated' | 'private', required: What kind of address the primary one is, in D4's order.
    - `way_in` string, nullable: How traffic gets in, as ADR 064 D3 names it (`tunnel:<name>`, `direct:<node>`, `private:<node>`).
  - `project_id` integer, required
  - `running_on` string[], required: The nodes its containers run on (`control plane` for the local one).
  - `state` 'reachable' | 'not_reachable' | 'checking' | 'unknown', required: `reachable` when any address is.
  - `summary` string, required: One line for the header: why nothing reaches it, or where it is.

## Other responses

- `404`: Project or environment not found

## Changes

- **2026-10-29** `4421f42bc4a2`: 3 warning, 1 info
  - added the new `redirect_to_https` enum value to the `plan/oneOf[#/components/schemas/ReachabilityPlan]/options/items/steps/items/kind` response property for the response status `200`
  - added the new `set_http_policy` enum value to the `plan/oneOf[#/components/schemas/ReachabilityPlan]/options/items/steps/items/kind` response property for the response status `200`
  - added the new `standard_ports_only` enum value to the `plan/oneOf[#/components/schemas/ReachabilityPlan]/options/items/steps/items/kind` response property for the response status `200`
  - added the optional property `addresses/items/findings` to the response with the `200` status
- …earlier changes not shown

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