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

# GET /preview-gateway/logs

`GET /preview-gateway/logs`

## Request

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

## Query parameters

- `tail` integer

## Response `200`

- PreviewGatewayLogsResponse
  - `lines` string[], required

## Other responses

- `409`: This control plane runs no workloads, so it runs no preview gateway
- `500`: Docker log 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-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`
- **2026-10-26** `284b6df39007`: 1 info
  - removed the non-success response with the status `409`

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