---
title: "Get publish info for a workflow file"
method: GET
path: "/api/userdata/{file}/publish"
tags: ["workflows"]
---

# Get publish info for a workflow file

`GET /api/userdata/{file}/publish`

Returns the publish status and share info for a workflow identified by its userdata path.

## Path parameters

- `file` string, required

## Response `200`

Publish info (publish_time is null if never published)

- WorkflowPublishInfo — Publishing metadata for a workflow shared to the Hub.
  - `assets` AssetInfo[], required — Published assets (inputs and models).
    - `id` string, required — Asset identifier.
    - `in_library` boolean, required — Whether the caller already owns this asset.
    - `model` boolean, required — Whether this asset is a model.
    - `name` string, required
    - `preview_url` string, required — Signed URL for previewing the asset.
    - `public` boolean, required — Whether this is a public (platform-provided) asset.
    - `storage_url` string, required
  - `listed` boolean, required
  - `publish_time` string, date-time, nullable
  - `share_id` string, required
  - `workflow_id` string, required

## Other responses

- `401` — Unauthorized
- `404` — Workflow not found
- `500` — Internal server error

## Changes

> 38 revisions in range; 2 could not be searched.

- **2026-06-03** `8560879e6188` — 3 breaking, 2 warning, 13 info
  - removed the required property `assets/items/filename` from the response with the `200` status
  - removed the required property `error` from the response with the `401` status
  - removed the required property `error` from the response with the `404` status
  - removed the optional property `assets/items/mime_type` from the response with the `200` status
  - …14 more
- **2026-05-22** `09a5075587c8` — 1 info
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added
- **2026-04-24** `a66055fa384e` — 1 breaking
  - api path removed without deprecation

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