POST
/
workflows
/
run
{
  "workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "running",
    "outputs": {},
    "error": "<string>",
    "elapsed_time": 123,
    "total_tokens": 123,
    "total_steps": 0,
    "created_at": 123,
    "finished_at": 123
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

工作流执行成功。响应结构取决于 response_mode

  • blocking: application/json 格式,包含 WorkflowCompletionResponseCn 对象。
  • streaming: text/event-stream 格式,包含 ChunkWorkflowEventCn 事件流。

阻塞模式下的 workflow 执行结果。