- 接口使用说明
- ilink
- 工作流
- 智能体
异步运行工作流(仅支持感知、执行类型工作流)
POST
/api/workflow/v1/async-run
请求参数
Header 参数
linker-sign
string
签名
Body 参数application/json
id
string
工作流ID
callback
string
回调地址
input
object
工作流的输入参数
passthrough
string
用户的透传参数,异步回调会把参数带回去
示例
{
"id": "a5b7de68b732400fb9324c495c608fc8",
"callback": "",
"input": {
"messages": [
{
"role": "user",
"content": "说个笑话"
}
],
"stream": false,
"max_tokens": 512,
"temperature": 0.7,
"top_p": 1
},
"passthrough":{
"key_a":"value_a",
"key_b":"value_b"
}
}
返回响应
🟢200成功
application/json
Body
code
string
错误码
message
string
错误信息
data
string
工作流的运行实例id,如果执行失败,该值为null
示例
{
"code": "string",
"message": "string",
"data": "string"
}
⚪0异步回调
修改于 2025-06-06 09:16:05