---
title: "GET /preview-gateway/status"
method: GET
path: "/preview-gateway/status"
tags: ["Preview Gateway"]
---

# GET /preview-gateway/status

`GET /preview-gateway/status`

## Request

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

## Response `200`

- GatewayStatus: Detailed gateway container status surfaced to the settings UI.
  - `auto_upgrade` boolean, required: True if `auto_upgrade` is enabled in settings.
  - `container_name` string, required: Container name.
  - `drift` boolean, required: True when `image != expected_image` and the container is present.
  - `expected_image` string, required: The image the supervisor *expects* (from settings/constant). If this differs from `image`, the UI shows a "drift" badge.
  - `health` string, required: Higher-level health label: "running" | "restarting" | "crash_looping" | "stopped" | "missing". UI should prefer this over `running`.
  - `host_port` integer, nullable: Host port that the ingress relay's :8080 is published on.
  - `image` string, nullable: Image reference the container was created with (e.g. an immutable `ghcr.io/gotempsh/temps-preview-gateway@sha256:…` reference).
  - `image_digest` string, nullable: Image digest if available (e.g. `sha256:…`).
  - `last_error` string, nullable: Error string Docker recorded for the container (e.g. startup failure).
  - `last_exit_code` integer, nullable: Exit code of the last run, if the container is not currently running.
  - `network` string, nullable: Trusted control network the gateway starts on. It is additionally attached to each per-sandbox isolated network during reconciliation.
  - `next_setup_attempt_at` string, nullable: ISO 8601 time Temps tries again on its own, when it has scheduled it.
  - `present` boolean, required: Whether the container exists at all.
  - `restart_count` integer, nullable: Number of times Docker has restarted the container.
  - `running` boolean, required: Whether the container is currently running.
  - `setup_error` string, nullable: Why Temps could not set the gateway up the last time it tried, until an attempt succeeds. Names the failed step and Docker's answer, with credentials redacted. Usually why `health` is "missing".
  - `setup_failed_at` string, nullable: ISO 8601 time of that failure.
  - `started_at` string, nullable: ISO 8601 timestamp the container was started at, if running.

## Other responses

- `409`: This control plane runs no workloads, so it runs no preview gateway
- `500`: Docker status request failed

## Changes

- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `409` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-31** `b615b8abfd94`: 3 info
  - added the optional property `next_setup_attempt_at` to the response with the `200` status
  - added the optional property `setup_error` to the response with the `200` status
  - added the optional property `setup_failed_at` to the response with the `200` status
- **2026-10-26** `6882080cc5b5`: 1 info
  - added the non-success response with the status `409`
- **2026-10-26** `198448ae2ca3`: 1 info
  - removed the non-success response with the status `409`
- **2026-10-26** `a086d94641be`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/preview-gateway/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)
