---
title: "List log files of an attempt with filters"
method: GET
path: "/api/logs/{attempt_id}/files"
tags: ["Log"]
---

# List log files of an attempt with filters

`GET /api/logs/{attempt_id}/files`

## Path parameters

- `attempt_id` integer, required

## Query parameters

- `task` string
- `direct_download` boolean

## Response `200`

default response

- RestLogFileHandleCollection
  - `files` RestLogFileHandle[]
    - `agentId` string, required — internal information
    - `direct` string, required — path to download log directly
    - `fileName` string, required — file name of log
    - `fileSize` integer, required — log size
    - `fileTime` string, date-time, required — file timestamp
    - `fileTimestamp` string, date-time, required — timestamp with sub second precision in ISO8601 format
    - `taskName` string, required — task name

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
