Skip to main content
GET
The workflow behind a job — authoring version if pinned, executed graph otherwise

授权

Authorization
string
header
必填

Authorization: Bearer <credential>. The credential is one of: an account-scoped API key (comfyui-…), accepted on Cloud and serverless; a Comfy Cloud session JWT; or an OAuth access token issued for the Comfy Cloud resource. Which kinds a given deployment accepts is deployment configuration — an API key always works on Cloud and serverless, and a deployment that does not accept JWT bearers answers 401 with a message saying so. Self-hosted accepts unauthenticated requests by default and can be configured with a static bearer token.

路径参数

id
string
必填

响应

The workflow graph.

The workflow behind a job. See GET /api/v2/jobs/{id}/workflow's description for exactly when format is save vs api.

workflow
object
必填

The workflow, verbatim, in the shape format says.

format
enum<string>
必填

Discriminates the workflow field's shape. save: the original authoring workflow JSON, at the version pinned to the job. api: the executed API-format prompt graph.

可用选项:
save,
api