---
title: "The newest runs of an environment."
method: GET
path: "/projects/{project_id}/environments/{environment_id}/reachability/runs"
tags: ["Reachability"]
---

# The newest runs of an environment.

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

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

## Path parameters

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

## Response `200`

- RunView[]
  - `address` string, nullable
  - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: Who an address is for.
  - `created` RunResource[], required: What the run created, oldest first: the journal's `done` entries.
    - union: Something a run made, so undo removes exactly that.
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'dns_provider', required
      - object
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'managed_domain', required
      - object: An existing managed domain whose automatic DNS the run turned on.
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'auto_manage_enabled', required
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'connector', required
      - object
        - `domain` string, required
        - `id` integer, required
        - `type` 'custom_domain', required
      - object
        - `connector_id` integer, required
        - `hostname` string, required
        - `previous` union, required: A hostname's ADR 058 D9 choice before a run changed it, so undo puts it back.
          - object: No choice: automatic selection.
            - `mode` 'automatic', required
          - object: Kept off tunnels.
            - `mode` 'off', required
          - object
            - `connector_id` integer, required
            - `mode` 'tunnel', required
        - `type` 'hostname_choice', required
      - object: A record the run created: undo removes it only while it still holds `content` with this run's marker.
        - `content` string, nullable: What the run wrote; absent on runs recorded before it was kept.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required: `A` or `AAAA`.
        - `type` 'dns_record', required
      - object: An existing record the run changed: undo puts `before` back while it still holds `after` with this run's marker.
        - `after` string, required
        - `before` DnsRecordState, required: A DNS record as the provider had it when Temps read it: what a run compares with before it writes, and what undo puts back (ADR 064 D4).
          - `content` string, required
          - `label` string: The record's name within its zone (`myapp`, `@`).
          - `managed` boolean: This install's signed ownership marker covers it.
          - `modified_on` string, nullable: When the provider says it last changed.
          - `provider_id` integer, required
          - `record_id` string, nullable
          - `record_type` string, required: `A` or `AAAA`.
          - `run_id` integer, nullable: The run whose marker it carries.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required
        - `type` 'dns_change', required
      - object: An address whose audience the run set: undo puts `before` back.
        - `after` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `before` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `hostname` string, required
        - `type` 'address_audience', required
      - object
        - `domain` string, required
        - `type` 'certificate', required
      - object: A Cloudflare Access application the run created (ADR 065 D9). Undo deletes it only while its domain is still `hostname`, and asks first when its policies no longer match `policies`.
        - `aud` string, required
        - `hostname` string, required
        - `id` string, required
        - `name` string, required
        - `policies` string, required: The policies' fingerprint when the run created it.
        - `provider_id` integer, required
        - `type` 'access_app', required
      - object: This run's reference to a worker's Serve entry (ADR 065 D4). Undo drops the reference; the entry goes with its last one.
        - `address_id` string, required
        - `created` boolean, required: This run created the entry, rather than finding it.
        - `entry_id` integer, required
        - `hostname` string, required
        - `node_id` integer, required
        - `node_name` string, required
        - `type` 'tailscale_serve', required
      - object: A Tailscale OAuth client the run saved (ADR 065 D2).
        - `id` integer, required
        - `name` string, required
        - `type` 'tailscale_credential', required
      - object: A Tailscale Service the run created or found (ADR 065 D4). Undo deletes it only once nothing uses it, and only when a person confirms.
        - `created` boolean, required: This run created it (`created`), rather than finding it.
        - `creator_run_id` integer, required: The run whose marker it carries.
        - `definition` ServiceDefinition, required: As read back once the step was done, with its addresses.
          - `addrs` string[]: The TailVIPs Tailscale assigned.
          - `comment` string
          - `name` string, required: `svc:myapp`.
          - `ports` string[]
          - `tags` string[]
        - `name` string, required: `svc:myapp`.
        - `tailnet` string, required: The tailnet's MagicDNS suffix, for the Service's lock and messages.
        - `type` 'tailscale_service', required
      - object: A tunnel whose environment hosts the run turned on (ADR 068 D3): undo turns them off, which withdraws every host it generated.
        - `connector_id` integer, required
        - `name` string, required
        - `type` 'environment_hosts', required
      - object: A Cloudflare rule the run added for its hostname (ADR 070). Undo deletes it only while it still holds `expression`.
        - `expression` string, required
        - `hostname` string, required
        - `provider_id` integer, required: The DNS provider whose token added it.
        - `purpose` 'https_redirect' | 'standard_ports', required: Which of the two rules.
        - `rule_id` string, required
        - `ruleset_id` string, required
        - `type` 'edge_rule', required
        - `zone` string, required
        - `zone_id` string, required
      - object: The address's HTTPS-only choice the run recorded (ADR 070): undo puts `before` back while it still holds `after`.
        - `after` 'https_only' | 'allow_http' | 'allow_all', required: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `before` 'https_only' | 'allow_http' | 'allow_all', nullable: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `hostname` string, required
        - `type` 'http_policy', required
  - `created_at` string, date-time, required
  - `environment_id` integer, nullable
  - `error` string, nullable: What went wrong or what is still missing, and what to do.
  - `finished_at` string, date-time, nullable
  - `id` integer, required
  - `journal` JournalEntry[], required: Every step's resource, written before the call that creates it.
    - `at` string, date-time, required
    - `conflict` string, nullable: For a `conflict`: what the record holds now, in words.
    - `decision` 'keep' | 'overwrite', nullable: A user's answer to a conflict (ADR 064 D4), journaled with the entry.
    - `deleting` boolean: Undo marked this tunnel `deleting` (ADR 064 D4): from here it is only ever finished, never reverted nor reused.
    - `failed_lookups` integer: Lookups that could not answer, for the backoff.
    - `first_miss_at` string, date-time, nullable: The first lookup that missed; a second one a settle delay later confirms the miss.
    - `intent` union, required: What a run set out to create, with what finds it again (ADR 064 D4): written to the journal before the call that creates it.
      - object: Found by its name, which the run picks before creating it.
        - `name` string, required
        - `type` 'dns_provider', required
      - object
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'managed_domain', required
      - object
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'auto_manage_enabled', required
      - object: Found by its name; Cloudflare's tunnel is `temps-<name>-<install>`.
        - `name` string, required
        - `type` 'connector', required
      - object
        - `domain` string, required
        - `environment_id` integer, required
        - `type` 'custom_domain', required
      - object
        - `connector_id` integer, required
        - `hostname` string, required
        - `previous` union, required: A hostname's ADR 058 D9 choice before a run changed it, so undo puts it back.
          - object: No choice: automatic selection.
            - `mode` 'automatic', required
          - object: Kept off tunnels.
            - `mode` 'off', required
          - object
            - `connector_id` integer, required
            - `mode` 'tunnel', required
        - `type` 'hostname_choice', required
      - object: Found by its ADR 031 ownership marker: controller `reachability`, this project and environment.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required
        - `type` 'dns_record', required
      - object: Changes the existing record from `before` (read just before the write) to `after`, stamped with this run's marker.
        - `after` string, required
        - `before` DnsRecordState, required: A DNS record as the provider had it when Temps read it: what a run compares with before it writes, and what undo puts back (ADR 064 D4).
          - `content` string, required
          - `label` string: The record's name within its zone (`myapp`, `@`).
          - `managed` boolean: This install's signed ownership marker covers it.
          - `modified_on` string, nullable: When the provider says it last changed.
          - `provider_id` integer, required
          - `record_id` string, nullable
          - `record_type` string, required: `A` or `AAAA`.
          - `run_id` integer, nullable: The run whose marker it carries.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required
        - `type` 'dns_change', required
      - object: Found by the address row's current audience.
        - `after` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `before` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `hostname` string, required
        - `type` 'address_audience', required
      - object
        - `domain` string, required
        - `type` 'certificate', required
      - object: Found by its name, which the run picks before creating it, and its domain (ADR 065 D9).
        - `hostname` string, required
        - `name` string, required
        - `provider_id` integer, required
        - `type` 'access_app', required
      - object: Found by the `tailnet_serve_entries` row and this run's reference to it (ADR 065 D4); the step is done only on the agent's report.
        - `address_id` string, required
        - `hostname` string, required
        - `node_id` integer, required
        - `node_name` string, required
        - `service` string, nullable: The `svc:` name, for a Service.
        - `type` 'tailscale_serve', required
      - object: Found by its Temps row's name.
        - `name` string, required
        - `type` 'tailscale_credential', required
      - object: Found by `GET …/services/{name}` and the marker in its `comment`.
        - `marker` string, required: `temps:<install>:<this run>`.
        - `name` string, required
        - `tailnet` string, required
        - `type` 'tailscale_service', required
      - object: Found by the connector's `environment_hosts` flag.
        - `connector_id` integer, required
        - `name` string, required
        - `type` 'environment_hosts', required
      - object: Found by its Cloudflare `ref`, `temps-<install>-run<id>-<purpose>`, in the phase's rules of the hostname's zone (ADR 070 D2).
        - `connector_id` integer, nullable: The tunnel the hostname goes through, whose DNS provider's token adds the rule.
        - `hostname` string, required
        - `purpose` 'https_redirect' | 'standard_ports', required: Which of the two rules.
        - `type` 'edge_rule', required
      - object: Found by the address row's current choice.
        - `after` 'https_only' | 'allow_http' | 'allow_all', required: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `before` 'https_only' | 'allow_http' | 'allow_all', nullable: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `hostname` string, required
        - `type` 'http_policy', required
    - `key` string, required
    - `next_lookup_at` string, date-time, nullable
    - `pending_since` string, date-time, nullable: When the entry was written `pending`, so a lookup knows how long the call has had.
    - `resource` union: Something a run made, so undo removes exactly that.
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'dns_provider', required
      - object
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'managed_domain', required
      - object: An existing managed domain whose automatic DNS the run turned on.
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'auto_manage_enabled', required
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'connector', required
      - object
        - `domain` string, required
        - `id` integer, required
        - `type` 'custom_domain', required
      - object
        - `connector_id` integer, required
        - `hostname` string, required
        - `previous` union, required: A hostname's ADR 058 D9 choice before a run changed it, so undo puts it back.
          - object: No choice: automatic selection.
            - `mode` 'automatic', required
          - object: Kept off tunnels.
            - `mode` 'off', required
          - object
            - `connector_id` integer, required
            - `mode` 'tunnel', required
        - `type` 'hostname_choice', required
      - object: A record the run created: undo removes it only while it still holds `content` with this run's marker.
        - `content` string, nullable: What the run wrote; absent on runs recorded before it was kept.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required: `A` or `AAAA`.
        - `type` 'dns_record', required
      - object: An existing record the run changed: undo puts `before` back while it still holds `after` with this run's marker.
        - `after` string, required
        - `before` DnsRecordState, required: A DNS record as the provider had it when Temps read it: what a run compares with before it writes, and what undo puts back (ADR 064 D4).
          - `content` string, required
          - `label` string: The record's name within its zone (`myapp`, `@`).
          - `managed` boolean: This install's signed ownership marker covers it.
          - `modified_on` string, nullable: When the provider says it last changed.
          - `provider_id` integer, required
          - `record_id` string, nullable
          - `record_type` string, required: `A` or `AAAA`.
          - `run_id` integer, nullable: The run whose marker it carries.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required
        - `type` 'dns_change', required
      - object: An address whose audience the run set: undo puts `before` back.
        - `after` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `before` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `hostname` string, required
        - `type` 'address_audience', required
      - object
        - `domain` string, required
        - `type` 'certificate', required
      - object: A Cloudflare Access application the run created (ADR 065 D9). Undo deletes it only while its domain is still `hostname`, and asks first when its policies no longer match `policies`.
        - `aud` string, required
        - `hostname` string, required
        - `id` string, required
        - `name` string, required
        - `policies` string, required: The policies' fingerprint when the run created it.
        - `provider_id` integer, required
        - `type` 'access_app', required
      - object: This run's reference to a worker's Serve entry (ADR 065 D4). Undo drops the reference; the entry goes with its last one.
        - `address_id` string, required
        - `created` boolean, required: This run created the entry, rather than finding it.
        - `entry_id` integer, required
        - `hostname` string, required
        - `node_id` integer, required
        - `node_name` string, required
        - `type` 'tailscale_serve', required
      - object: A Tailscale OAuth client the run saved (ADR 065 D2).
        - `id` integer, required
        - `name` string, required
        - `type` 'tailscale_credential', required
      - object: A Tailscale Service the run created or found (ADR 065 D4). Undo deletes it only once nothing uses it, and only when a person confirms.
        - `created` boolean, required: This run created it (`created`), rather than finding it.
        - `creator_run_id` integer, required: The run whose marker it carries.
        - `definition` ServiceDefinition, required: As read back once the step was done, with its addresses.
          - `addrs` string[]: The TailVIPs Tailscale assigned.
          - `comment` string
          - `name` string, required: `svc:myapp`.
          - `ports` string[]
          - `tags` string[]
        - `name` string, required: `svc:myapp`.
        - `tailnet` string, required: The tailnet's MagicDNS suffix, for the Service's lock and messages.
        - `type` 'tailscale_service', required
      - object: A tunnel whose environment hosts the run turned on (ADR 068 D3): undo turns them off, which withdraws every host it generated.
        - `connector_id` integer, required
        - `name` string, required
        - `type` 'environment_hosts', required
      - object: A Cloudflare rule the run added for its hostname (ADR 070). Undo deletes it only while it still holds `expression`.
        - `expression` string, required
        - `hostname` string, required
        - `provider_id` integer, required: The DNS provider whose token added it.
        - `purpose` 'https_redirect' | 'standard_ports', required: Which of the two rules.
        - `rule_id` string, required
        - `ruleset_id` string, required
        - `type` 'edge_rule', required
        - `zone` string, required
        - `zone_id` string, required
      - object: The address's HTTPS-only choice the run recorded (ADR 070): undo puts `before` back while it still holds `after`.
        - `after` 'https_only' | 'allow_http' | 'allow_all', required: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `before` 'https_only' | 'allow_http' | 'allow_all', nullable: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `hostname` string, required
        - `type` 'http_policy', required
    - `shown_service` ServiceDefinition, nullable: A Tailscale Service as the API returns it, with the fields D4 compares.
      - `addrs` string[]: The TailVIPs Tailscale assigned.
      - `comment` string
      - `name` string, required: `svc:myapp`.
      - `ports` string[]
      - `tags` string[]
    - `state` 'pending' | 'done' | 'absent' | 'conflict', required
    - `tunnel_id` string, nullable: The provider tunnel id the connector had when it was marked.
    - `undo_decision` 'keep' | 'overwrite', nullable: A user's answer to a conflict (ADR 064 D4), journaled with the entry.
    - `unwritten` boolean: A conflict found before the write: Temps wrote nothing, so undo has nothing to put back for it.
  - `live_url` string, nullable: The address, once it is reachable.
  - `option` string, required
  - `plan_id` string, nullable
  - `project_id` integer, nullable
  - `state` 'running' | 'succeeded' | 'waiting' | 'failed' | 'interrupted' | 'recovering' | 'conflict' | 'undoing' | 'undo_paused' | 'undone', required
  - `steps` RunStep[], required
    - `detail` string, nullable
    - `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
    - `status` 'pending' | 'running' | 'done' | 'failed' | 'skipped', required
  - `undo` UndoResult[], required
    - `error` string, nullable
    - `label` string, required
    - `ok` boolean, required
    - `resource` union, required: Something a run made, so undo removes exactly that.
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'dns_provider', required
      - object
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'managed_domain', required
      - object: An existing managed domain whose automatic DNS the run turned on.
        - `domain` string, required
        - `provider_id` integer, required
        - `type` 'auto_manage_enabled', required
      - object
        - `id` integer, required
        - `name` string, required
        - `type` 'connector', required
      - object
        - `domain` string, required
        - `id` integer, required
        - `type` 'custom_domain', required
      - object
        - `connector_id` integer, required
        - `hostname` string, required
        - `previous` union, required: A hostname's ADR 058 D9 choice before a run changed it, so undo puts it back.
          - object: No choice: automatic selection.
            - `mode` 'automatic', required
          - object: Kept off tunnels.
            - `mode` 'off', required
          - object
            - `connector_id` integer, required
            - `mode` 'tunnel', required
        - `type` 'hostname_choice', required
      - object: A record the run created: undo removes it only while it still holds `content` with this run's marker.
        - `content` string, nullable: What the run wrote; absent on runs recorded before it was kept.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required: `A` or `AAAA`.
        - `type` 'dns_record', required
      - object: An existing record the run changed: undo puts `before` back while it still holds `after` with this run's marker.
        - `after` string, required
        - `before` DnsRecordState, required: A DNS record as the provider had it when Temps read it: what a run compares with before it writes, and what undo puts back (ADR 064 D4).
          - `content` string, required
          - `label` string: The record's name within its zone (`myapp`, `@`).
          - `managed` boolean: This install's signed ownership marker covers it.
          - `modified_on` string, nullable: When the provider says it last changed.
          - `provider_id` integer, required
          - `record_id` string, nullable
          - `record_type` string, required: `A` or `AAAA`.
          - `run_id` integer, nullable: The run whose marker it carries.
        - `hostname` string, required
        - `label` string, required
        - `record_type` string, required
        - `type` 'dns_change', required
      - object: An address whose audience the run set: undo puts `before` back.
        - `after` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `before` AddressAudience, required: Who one address is for, with what bounds a private one (ADR 064 D5).
          - `audience` 'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported', required: 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.
          - `gate_access` AccessBinding, nullable: The Cloudflare Access application in front of a signed-in address (ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.
            - `app_id` string, required
            - `aud` string, required
            - `provider_id` integer, required
          - `gate_allow` GateAllowList, nullable: Who may sign in to a Temps-gated address besides being able to see the project (ADR 065 D7): stored in `gate_allow`. Empty lists mean no list.
            - `teams` integer[]
            - `users` integer[]
          - `network_range` string, nullable: For `private`: the network range a visitor must come from.
          - `principals` TailnetPrincipal[]: For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo puts the earlier list back with the audience.
            - `kind` 'login' | 'tag', required: What a `tailnet_users` entry names (ADR 065 D6).
            - `value` string, required
          - `private_listener` string, nullable: For `private`: that listener's address, which DNS points at and the inside check dials.
          - `private_node_id` integer, nullable: For `private`: the worker whose private listener serves it.
          - `private_service` string, nullable: For `tailscale_service`: the `svc:` name.
          - `private_via` string, nullable: For `private`: how it is served (ADR 065 D1), `tailscale_serve` or `tailscale_service`. `None` is phase 2's listener, so runs journaled before this column compare equal to what they set.
        - `hostname` string, required
        - `type` 'address_audience', required
      - object
        - `domain` string, required
        - `type` 'certificate', required
      - object: A Cloudflare Access application the run created (ADR 065 D9). Undo deletes it only while its domain is still `hostname`, and asks first when its policies no longer match `policies`.
        - `aud` string, required
        - `hostname` string, required
        - `id` string, required
        - `name` string, required
        - `policies` string, required: The policies' fingerprint when the run created it.
        - `provider_id` integer, required
        - `type` 'access_app', required
      - object: This run's reference to a worker's Serve entry (ADR 065 D4). Undo drops the reference; the entry goes with its last one.
        - `address_id` string, required
        - `created` boolean, required: This run created the entry, rather than finding it.
        - `entry_id` integer, required
        - `hostname` string, required
        - `node_id` integer, required
        - `node_name` string, required
        - `type` 'tailscale_serve', required
      - object: A Tailscale OAuth client the run saved (ADR 065 D2).
        - `id` integer, required
        - `name` string, required
        - `type` 'tailscale_credential', required
      - object: A Tailscale Service the run created or found (ADR 065 D4). Undo deletes it only once nothing uses it, and only when a person confirms.
        - `created` boolean, required: This run created it (`created`), rather than finding it.
        - `creator_run_id` integer, required: The run whose marker it carries.
        - `definition` ServiceDefinition, required: As read back once the step was done, with its addresses.
          - `addrs` string[]: The TailVIPs Tailscale assigned.
          - `comment` string
          - `name` string, required: `svc:myapp`.
          - `ports` string[]
          - `tags` string[]
        - `name` string, required: `svc:myapp`.
        - `tailnet` string, required: The tailnet's MagicDNS suffix, for the Service's lock and messages.
        - `type` 'tailscale_service', required
      - object: A tunnel whose environment hosts the run turned on (ADR 068 D3): undo turns them off, which withdraws every host it generated.
        - `connector_id` integer, required
        - `name` string, required
        - `type` 'environment_hosts', required
      - object: A Cloudflare rule the run added for its hostname (ADR 070). Undo deletes it only while it still holds `expression`.
        - `expression` string, required
        - `hostname` string, required
        - `provider_id` integer, required: The DNS provider whose token added it.
        - `purpose` 'https_redirect' | 'standard_ports', required: Which of the two rules.
        - `rule_id` string, required
        - `ruleset_id` string, required
        - `type` 'edge_rule', required
        - `zone` string, required
        - `zone_id` string, required
      - object: The address's HTTPS-only choice the run recorded (ADR 070): undo puts `before` back while it still holds `after`.
        - `after` 'https_only' | 'allow_http' | 'allow_all', required: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `before` 'https_only' | 'allow_http' | 'allow_all', nullable: What a tunnel address answers at Cloudflare's edge, as the user chose it (ADR 070 D1). Stored on the address (`project_custom_domains. http_policy`); `None` there means never chosen, and nothing is changed for such an address until a run records a choice.
        - `hostname` string, required
        - `type` 'http_policy', required
  - `updated_at` string, date-time, required

## Changes

- **2026-10-29** `4421f42bc4a2`: 4 breaking, 3 warning
  - added `subschema #16, subschema #17` to the `items/created/items/` response property `oneOf` list for the response status `200`
  - added `subschema #16, subschema #17` to the `items/journal/items/intent` response property `oneOf` list for the response status `200`
  - added `subschema #16, subschema #17` to the `items/journal/items/resource/oneOf[#/components/schemas/RunResource]/` response property `oneOf` list for the response status `200`
  - added `subschema #16, subschema #17` to the `items/undo/items/resource` response property `oneOf` list for the response status `200`
  - …3 more
- …earlier changes not shown

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