跳转到主要内容
POST
/
open
/
agentic_engine
/
laiye
/
v1
/
app
/
run
运行应用(同步接口)
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    application_id: 'app_abc123',
    inputs: {query: '请帮我分析这份采购单'},
    files: [
      {
        url: 'https://example.com/purchase_order.pdf',
        name: '采购单.pdf',
        mime_type: 'application/pdf'
      }
    ]
  })
};

fetch('https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "code": "success",
  "message": "",
  "data": {
    "run_id": "run_xyz789",
    "status": "succeeded",
    "output": {
      "result": "采购单分析完成"
    },
    "error": null,
    "started_at": "2026-04-30T10:00:00Z",
    "ended_at": "2026-04-30T10:00:15Z"
  }
}

授权

X-API-Key
string
header
必填

工作流智能引擎 API 访问密钥。

请求体

application/json
application_id
string
必填
release_version_id
string
session_id
string
files
object[]
inputs
object

响应

工作流运行结果。

code

业务码。成功通常为 success 或 200。

message
string

返回信息。

tips
string | null

详细信息,默认为空。

data
object