Preview Gateway
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

auto_upgradeboolean required

True if auto_upgrade is enabled in settings.

container_namestring required

Container name.

driftboolean required

True when image != expected_image and the container is present.

expected_imagestring required

The image the supervisor expects (from settings/constant). If this differs from image, the UI shows a "drift" badge.

healthstring required

Higher-level health label: "running" | "restarting" | "crash_looping" | "stopped" | "missing". UI should prefer this over running.

host_portinteger nullable

Host port that the ingress relay's :8080 is published on.

imagestring nullable

Image reference the container was created with (e.g. an immutable ghcr.io/gotempsh/temps-preview-gateway@sha256:… reference).

image_digeststring nullable

Image digest if available (e.g. sha256:…).

last_errorstring nullable

Error string Docker recorded for the container (e.g. startup failure).

last_exit_codeinteger nullable

Exit code of the last run, if the container is not currently running.

networkstring nullable

Trusted control network the gateway starts on. It is additionally attached to each per-sandbox isolated network during reconciliation.

presentboolean required

Whether the container exists at all.

restart_countinteger nullable

Number of times Docker has restarted the container.

runningboolean required

Whether the container is currently running.

started_atstring nullable

ISO 8601 timestamp the container was started at, if running.

Changes