Skip to main content
get/workflows/run/{workflow_run_id}
Request example
Response
get/workflows/run/{workflow_run_id}

Authorization

Authorizationstringheaderrequired#

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401(unauthorized)。

Path parameters

workflow_run_idstringrequired#
工作流运行 ID,来自 执行工作流 的响应或流式事件,或 Chatflow 应用的消息元数据。

Responses

application/json
成功获取工作流运行详情。
created_atinteger#
工作流运行创建时的 Unix 时间戳。
elapsed_timenumber#
总耗时(秒)。
errorstring#
工作流失败时的错误消息。
finished_atinteger#
工作流运行结束时的 Unix 时间戳。
idstring#
工作流运行 ID。
inputsstring#
工作流运行的输入变量,以原始 JSON 字符串返回(例如 {"query": "..."}),客户端需自行解析;可能为 null。
outputsobject#
工作流的输出数据。尚无输出时为空对象。
statusstring#
工作流执行状态。running 表示执行中,succeeded 表示成功完成,failed 表示执行出错,stopped 表示手动停止,partial-succeeded 表示部分节点成功但其他失败,paused 表示等待人工介入。
total_stepsinteger#
已执行的工作流总步数。
total_tokensinteger#
消耗的总令牌数。
workflow_idstring#
工作流 ID.