RunningHub API icon

RunningHub API

Interact with the RunningHub API

ComfyUI Workflow → Query Workflow Info

AI-generated

Summary

Fetches the API-format JSON configuration of a RunningHub ComfyUI workflow by ID and, by default, parses its prompt into structured node/field data you can use to build a nodeInfoList for task creation.

Inputs

  • Workflow ID (required) — ID of the RunningHub workflow whose JSON configuration is retrieved. Sent as workflowId to POST /api/openapi/getJsonApiFormat.
  • Parse Workflow Prompt — Defaults to true. When on and the response contains a data.prompt string, it is parsed into JSON and extra fields are added to the output. When off, the raw API response is returned unchanged.

Output shape

One JSON item per input item: the raw RunningHub API response, plus parsed fields when Parse Workflow Prompt is enabled.

With parsing on and a non-empty data.prompt string, these keys are added to the response: parsedPrompt (the prompt object); nodeInfoListPreview (one entry per node input, with nodeId, fieldName, fieldValue and fieldValuePreview); workflowPromptFields (system_prompt_fields, prompt_fields and negative_prompt_fields, found by heuristics over text/prompt/positive_prompt/negative_prompt inputs, with values truncated to 160 characters, and linked values skipped); nodeInfoListTemplate (nodeId, fieldName, fieldValue); and workflowPromptNodeInfoList (the same entries tagged with promptKind). If the prompt is missing or not a string, the raw response is returned as is. The prompt must be valid JSON, otherwise parsing throws an error. Uses the credential's API key, and a license key check runs before execution. Errors can be routed per item with Continue On Fail.

Examples

Example 1: Discover which nodeId and fieldName values to override before running a workflow.

Workflow ID = your workflow ID; Parse Workflow Prompt = true. Use nodeInfoListPreview or nodeInfoListTemplate to fill the NodeInfoList of Create ComfyUI Task.

Example 2: Retrieve the raw workflow JSON without extra processing.

Workflow ID = your workflow ID; Parse Workflow Prompt = false.

Links

Discussion