---
title: "List files in a userdata directory"
method: GET
path: "/api/userdata"
tags: ["userdata"]
---

# List files in a userdata directory

`GET /api/userdata`

Lists files in the authenticated user's data directory. Returns either filename strings or full objects depending on the `full_info` query parameter.

## Query parameters

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

## Headers

- `Comfy-User` string

## Response `200`

File listing

- union — Response body for `GET /api/userdata`. The array item shape is determined by the `full_info` and `split` query parameters.
  - GetUserDataResponseFullFile[] — Returned when `full_info=true`.
    - `path` string — File name or path relative to the user directory
    - `created` number — Unix timestamp of file creation
    - `size` integer — File size in bytes
    - `modified` integer — Unix timestamp of last modification in milliseconds
  - array[] — Returned when `split=true` and `full_info=false`. Each inner array is `[relative_path, ...path_components]`.
    - string[]
  - string[] — Default shape — array of file paths relative to the user data root.

## Other responses

- `404` — Directory not found

## Changes

- **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/a66055fa384e/schema)
