跳转到主要内容
GET
/
workflows
/
run
/
{workflow_run_id}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "running",
  "inputs": "<string>",
  "outputs": {},
  "error": "<string>",
  "total_steps": 123,
  "total_tokens": 123,
  "created_at": 123,
  "finished_at": 123,
  "elapsed_time": 123
}

Authorizations

Authorization
string
header
required

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含你的 API-Key,格式为:Bearer {API_KEY}。强烈建议开发者把 API-Key 放在后端存储,而非客户端,以免泄露。

Path Parameters

workflow_run_id
string<uuid>
required

workflow 执行 ID,可在流式返回 Chunk 或阻塞模式响应中获取。

Response

成功获取 workflow 执行详情。

Workflow 执行详情。

id
string<uuid>

workflow 执行 ID。

workflow_id
string<uuid>

关联的 Workflow ID。

status
enum<string>

执行状态。

可用选项:
running,
succeeded,
failed,
stopped
inputs
string

任务输入内容的 JSON 字符串。

outputs
object | null

任务输出内容的 JSON 对象。

error
string | null

错误原因。

total_steps
integer

任务执行总步数。

total_tokens
integer

任务执行总 tokens。

created_at
integer

任务开始时间。

finished_at
integer | null

任务结束时间。

elapsed_time
number | null

耗时(秒)。