---
title: "List user data files"
method: GET
path: "/api/userdata"
tags: ["user"]
---

# List user data files

`GET /api/userdata`

Returns a list of user data files in the specified directory, optionally recursively and with full metadata.

## Query parameters

- `dir` string, required
- `recurse` boolean
- `split` boolean
- `full_info` boolean

## Response `200`

A list of user data files.

- GetUserDataResponseFullFile[]
  - `path` string — File name or path relative to the user directory.
  - `size` integer — File size in bytes.
  - `modified` number, float — UNIX timestamp of the last modification.

## Other responses

- `400` — Bad request (e.g., invalid filename).
- `401` — Unauthorized.
- `404` — File not found or invalid path.
- `500` — General error

---

[API](https://skmtc.net/ac/apis/comfy-api.md) · [All operations](https://skmtc.net/ac/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ac/comfy-api/versions/c1893dffe250/schema)
