---
title: "Gets a list of files in the /var/logs directory"
method: GET
path: "/api/logs"
tags: ["Logs"]
---

# Gets a list of files in the /var/logs directory

`GET /api/logs`

## Response `200`

The list of log files

- LogFile[]
  - `name` string — The file name without extension.
  - `size` integer — The file size in bytes
  - `mtime` string — Last modification date of the file
  - `lines` integer — Number of lines in the log file

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2023-04-24** `98919748e600` — 1 info
  - endpoint added
- **2020-07-23** `42c41034504b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/logs/get.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/4dc3bf84edf7/schema)
