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

Authorizations

Authorization
string
header
required

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.

Path Parameters

id
string
required

Response

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
required

The workflow, verbatim, in the shape format says.

format
enum<string>
required

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.

Available options:
save,
api