---
title: "Get user data file"
method: GET
path: "/api/userdata/{file}"
tags: ["user"]
---

# Get user data file

`GET /api/userdata/{file}`

Returns the requested user data file if it exists.

## Path parameters

- `file` string, required

## Response `200`

Successfully retrieved the file.

## 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/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/a3660438bbe9/schema)
