---
title: "Get Log Files"
method: GET
path: "/api/performance/logs"
tags: ["Performance"]
---

# Get Log Files

`GET /api/performance/logs`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/performance/logs`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Response `200`

OK

- ResponseDtoLogFilesResponse: Response_dto.LogFilesResponse schema
  - `data` LogFilesResponse, required
    - `enabled` boolean, required
    - `file_count` integer, required
    - `files` LogFileInfo[], nullable, required
      - `mod_time` string, date-time, required
      - `name` string, required
      - `size` integer, required
    - `log_dir` string, required
    - `newest_time` string, date-time, nullable
    - `oldest_time` string, date-time, nullable
    - `total_size` integer, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
