POST
/
embed
/
api
/
workflows
/
{workflowName}
/
runs
/
{runId}
/
user-input
/
stream
公开入口以流式方式提交用户输入
curl --request POST \
  --url https://wfapi.yuhe.space/embed/api/workflows/{workflowName}/runs/{runId}/user-input/stream \
  --header 'Content-Type: application/json' \
  --header 'x-workflow-embed-token: <api-key>' \
  --data '
{
  "token": "wfembed_xxx",
  "requestId": "demo:20260604-abc:approval",
  "values": {
    "approved": true
  },
  "toolPermissionPolicies": {
    "search": {
      "enabled": true,
      "autoApprove": false
    }
  }
}
'
"<string>"

Authorizations

x-workflow-embed-token
string
header
required

Embed token;也可通过 query/body 的 token 传入。

Path Parameters

workflowName
string
required
runId
string
required

Body

application/json
requestId
string
required
values
object
required
token
string
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.