---
title: "Get logs for a container in an environment via WebSocket"
method: GET
path: "/projects/{project_id}/environments/{environment_id}/container-logs"
tags: ["Deployments"]
---

# Get logs for a container in an environment via WebSocket

`GET /projects/{project_id}/environments/{environment_id}/container-logs`

## 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}/container-logs`
- Auth: HTTP bearer

## Path parameters

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

## Query parameters

- `start_date` integer
- `end_date` integer
- `tail` string
- `container_name` string
- `timestamps` boolean
- `follow` boolean

## Other responses

- `101`: WebSocket connection established for streaming container logs
- `400`: Not a server-type project
- `404`: Project, deployment, or container not found
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - added the new optional `query` request parameter `follow`

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