---
title: "Retrieve all files’ and folders’ information."
method: GET
path: "/api/files"
---

# Retrieve all files’ and folders’ information.

`GET /api/files`

## Query parameters

- `recursive` boolean

## Headers

- `If-None-Match` string

## Response `200`

OK

- AllFilesInfo
  - `files` union[]
    - union
      - FileInfo
        - `origin` string
        - `path` string
        - `display` string
        - `name` string
        - `size` integer
        - `type` string
        - `typePath` string[]
        - `refs` object
          - `resource` string
          - `download` string
          - `thumbnailSmall` string, nullable
          - `thumbnailBig` string, nullable
        - `gcodeAnalysis` object
          - `estimatedPrintTime` integer, nullable — estimated print time in [s].
          - `material` string, nullable — String with used material. It is not compatible with OctoPrint.
          - `layerHeight` number — Layer height of the file in [mm]. It is not compatible with OctoPrint.
        - `hash` string
        - `date` integer — Unix timestamp of last modified date [s]. It is not compatible with OctoPrint.
      - FullFolderInfo
        - `origin` string
        - `path` string
        - `display` string
        - `name` string
        - `size` integer
        - `type` string
        - `typePath` string[]
        - `refs` object
          - `resource` string
        - `children` union[]
          - union
            - object
              - …
            - object
              - …
  - `free` integer
  - `total` integer

## Other responses

- `403` — Unauthorized

## Changes

- **2021-09-23** `7ad880a6c0c4` — 6 info
  - the response property `text` became required for the status `403`
  - the response property `title` became required for the status `403`
  - the `code` response's property default value `10108` was removed for the status `403`
  - the `text` response's property default value `Measured resin volume 22.4 ml is lower than required for this print. Refill the tank and restart the print.` was removed for the status `403`
  - …2 more
- **2021-02-22** `30eda14983ed` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/prusa3d/apis/prusalink-web/changes/api/files/get.md)

---

[API](https://skmtc.dev/prusa3d/apis/prusalink-web.md) · [All operations](https://skmtc.dev/prusa3d/apis/prusalink-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prusa3d/prusalink-web/revisions/ebdce30f1db8/schema)
