跳转到主要内容
GET
获取工作流执行情况

授权

Authorization
string
header
必填

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

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

路径参数

workflow_run_id
string
必填

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

响应

成功获取工作流运行详情。

id
string<uuid>

工作流运行 ID。

workflow_id
string<uuid>

工作流 ID.

status
string

工作流执行状态。running 表示执行中,succeeded 表示成功完成,failed 表示执行出错,stopped 表示手动停止,partial-succeeded 表示部分节点成功但其他失败,paused 表示等待人工介入。

inputs
string | null

工作流运行的输入变量,以原始 JSON 字符串返回(例如 {"query": "..."}),客户端需自行解析;可能为 null

outputs
object

工作流的输出数据。尚无输出时为空对象。

error
string | null

工作流失败时的错误消息。

total_steps
integer

已执行的工作流总步数。

total_tokens
integer

消耗的总令牌数。

created_at
integer<int64>

工作流运行创建时的 Unix 时间戳。

finished_at
integer<int64> | null

工作流运行结束时的 Unix 时间戳。

elapsed_time
number<float> | null

总耗时(秒)。