POST
/
api
/
workflows
/
{workflowName}
/
runs
/
{runId}
/
user-input
/
stream
以流式方式提交用户输入并恢复等待中的 run
curl --request POST \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/runs/{runId}/user-input/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requestId": "demo:20260604-abc:approval",
  "values": {
    "approved": true,
    "note": "continue"
  }
}
'
"<string>"

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required
runId
string
required

Body

application/json
requestId
string
required
values
object
required
toolPermissionPolicies
object
Example:
{
"search": { "enabled": true, "autoApprove": false }
}

Response

200 - application/x-ndjson

NDJSON runtime event 流,最后一条为 run_result

The response is of type string.