---
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

## Changes

- **2026-06-03** `8560879e6188` — 1 warning, 3 info
  - deleted the `header` request parameter `Comfy-User`
  - api tag `user` added
  - api tag `userdata` removed
  - added the media type `text/plain` for the response with the status `404`
- **2026-05-22** `09a5075587c8` — 3 info
  - 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` — 1 breaking, 6 info
  - removed the media type `text/plain` for the response with the status `404`
  - api tag `userdata` added
  - api tag `user` removed
  - added the new optional `header` request parameter `Comfy-User`
  - …3 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/userdata/:file/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)
