---
title: "Live tail logs via Server-Sent Events"
method: GET
path: "/logs/tail"
tags: ["Logs"]
---

# Live tail logs via Server-Sent Events

`GET /logs/tail`

## Request

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

## Query parameters

- `project_id` string, required
- `service` string, required
- `env` string, required
- `levels` string[], required
- `text` string

## Response `200`

SSE stream of log lines

## Other responses

- `401`: Unauthorized

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `401` status
- **2026-10-05** `4b228ebed583`: 1 info
  - added the optional property `status` to the response with the `401` status
- **2026-10-05** `63a80791dc58`: 1 warning
  - removed the optional property `status` from the response with the `401` status
- **2026-09-23** `f4efc4d5c7b7`: 1 info
  - added the optional property `status` to the response with the `401` status
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

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