---
title: "What *Make it reachable* would do for an address."
method: POST
path: "/projects/{project_id}/environments/{environment_id}/reachability/plan"
tags: ["Reachability"]
---

# What \*Make it reachable\* would do for an address.

`POST /projects/{project_id}/environments/{environment_id}/reachability/plan`

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

Returns the ways in that fit, in the order Temps prefers them, each with
its steps, the fields still to answer and, when an option changes
another choice, what to confirm. Changes nothing in the cluster; the plan
is kept for 15 minutes under `plan_id` with a fingerprint of what it
depends on, for `apply`.

## Path parameters

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

## Request body

- PlanRequest: `POST …/reachability/plan`.
  - `address` string, nullable: The hostname to make reachable; Temps suggests one without it.
  - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported': Who an address is for.
  - `gate` 'temps' | 'cloudflare_access' | 'unsupported', nullable: Which gate an address has (D7). Unknown values read as `Unsupported`, and an unsupported gate admits nobody.
  - `principals` TailnetPrincipal[]: For `tailnet_users`: the tailnet logins and tags it admits (ADR 065 D6). At least one; checked and lower-cased.
    - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
    - `value` string, required

## Response `200`

- ReachabilityPlan
  - `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
            - `help` string, nullable
            - `label` string, required
            - `value` string, 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

## Other responses

- `404`: Project or environment not found

## Changes

- **2026-10-29** `4421f42bc4a2`: 3 warning
  - added the new `redirect_to_https` enum value to the `options/items/steps/items/kind` response property for the response status `200`
  - added the new `set_http_policy` enum value to the `options/items/steps/items/kind` response property for the response status `200`
  - added the new `standard_ports_only` enum value to the `options/items/steps/items/kind` response property for the response status `200`
- **2026-10-26** `cddadf038293`: 1 breaking, 11 warning, 5 info
  - added `subschema #5, subschema #6, subschema #7, subschema #8` to the `options/items/fields/items/kind` response property `oneOf` list for the response status `200`
  - added the new `access_app` enum value to the `options/items/steps/items/kind` response property for the response status `200`
  - added the new `configure_tailscale_serve` enum value to the `options/items/steps/items/kind` response property for the response status `200`
  - added the new `define_tailscale_service` enum value to the `options/items/steps/items/kind` response property for the response status `200`
  - …13 more
- **2026-10-26** `6882080cc5b5`: 1 info
  - endpoint added
- **2026-10-26** `198448ae2ca3`: 1 breaking
  - api path removed without deprecation
- …earlier changes not shown

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