---
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

---

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