工作流运行
执行工作流
适用于:Workflow。
运行应用已发布的工作流并返回其输出,可以是单次 blocking 响应,也可以是 streaming 的 Server-Sent Events 流。需要已发布的工作流。
POST
Authorizations
Body
application/json
响应模式。使用 blocking 获取同步响应(Cloudflare 超时时间为 100 s),使用 streaming 获取服务器发送事件。未指定时默认为阻塞模式。
Available options:
streaming, blocking Response
请求成功。内容类型和结构取决于请求中的 response_mode 参数。
- 如果
response_mode为blocking,返回application/json和WorkflowBlockingResponse对象。 - 如果
response_mode为streaming,返回text/event-stream和ChunkWorkflowEvent对象流。
Last modified on September 1, 2026