---
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
- `recurse` boolean
- `split` boolean
- `full_info` boolean

## Response `200`

A list of user data files.

- GetUserDataResponseFullFile[] — List of user data file entries (each with path, size, and modification time) returned when full_info=true.
  - `modified` integer — UNIX timestamp of the last modification in milliseconds.
  - `path` string — File name or path relative to the user directory.
  - `size` integer — File size in bytes.

## Other responses

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

## Changes

- **2026-06-03** `8560879e6188` — 3 breaking, 2 warning, 4 info
  - for the `query` request parameter `full_info`, default value `false` was added
  - for the `query` request parameter `recurse`, default value `false` was added
  - for the `query` request parameter `split`, default value `false` was added
  - deleted the `header` request parameter `Comfy-User`
  - …5 more
- **2026-05-22** `c4db9e1283df` — 1 breaking, 1 info
  - the response's body type/format changed from ``/`` to `array`/`` for status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the response body `oneOf` list for the response status `200`
- **2026-05-22** `09a5075587c8` — 4 info
  - api operation id `listUserdata` removed and replaced with `getUserdata`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 7 breaking, 7 info
  - the `query` request parameter `dir` became required
  - for the `query` request parameter `full_info`, default value `false` was removed
  - for the `query` request parameter `recurse`, default value `false` was removed
  - for the `query` request parameter `split`, default value `false` was removed
  - …10 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/userdata/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/da017caf56f1/schema)
