---
title: "Get container logs"
method: GET
path: "/container/{ocid}/logs"
tags: ["Container"]
---

# Get container logs

`GET /container/{ocid}/logs`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/{ocid}/logs`
- Auth: API key in header `Authorization`

Get the last lines of a container's output

## Path parameters

- `ocid` integer, required

## Query parameters

- `tail` integer

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseString
  - `data` string
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/:ocid/logs/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
