---
title: "Which audiences, and which ways in, can work for an environment."
method: GET
path: "/projects/{project_id}/environments/{environment_id}/reachability/choices"
tags: ["Reachability"]
---

# Which audiences, and which ways in, can work for an environment.

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

## 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/choices`
- Auth: HTTP bearer

Per audience (and per gate for `signed_in`): whether any way in fits,
why not and what would fix it, the ways in a plan would offer with no
address asked for, and the address Temps would suggest (ADR 069 D3).
Runs the same planner as `…/reachability/plan` and stores nothing:
the answer is advisory, and `apply` still holds a run to the plan made
for the address the user chooses.

## Path parameters

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

## Response `200`

- ReachabilityChoices: `GET …/reachability/choices` (ADR 069 D3): which audiences, and which ways in for each, the planner can offer this environment before the user picks one. Advisory: nothing is stored, and `apply` still holds a run to the plan made for the address the user types.
  - `audiences` AudienceChoice[], required: One entry per audience, and per gate for `signed_in`, in the order the console shows them.
    - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: Who an address is for.
    - `available` boolean, required: Whether at least one way in fits.
    - `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
    - `gate` 'temps' | 'cloudflare_access' | 'unsupported', nullable: Which gate an address has (D7). Unknown values read as `Unsupported`, and an unsupported gate admits nobody.
    - `not_offered` PlanBlocked[], required: Ways in the planner left out, and why, while the audience is still available another way.
      - `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
    - `suggested_address` string, nullable: The address Temps would suggest for it.
    - `ways_in` WayInChoice[], required: The ways in the planner offers with no address asked for, in the order it prefers them.
      - `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
      - `title` string, required
      - `way_in` string, required: As in [`PlanOption::way_in`].
  - `deployed` boolean, required: Whether anything is deployed to it.
  - `environment_id` integer, required
  - `environment_name` string, required
  - `project_id` integer, required
  - `running_on` string[], required: The nodes its containers run on (`control plane` for the local one).

## Other responses

- `404`: Project or environment not found

## Changes

- **2026-10-29** `6d5d7eaf4b5a`: 1 info
  - endpoint added

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